Tag Info

Hot answers tagged

5

The feature is called ControlMaster which does multiplexing over one existing channel. It will cause you will do all key exchange and logging in only once and the later commands will go through much faster. You activate it using these three lines in you .ssh/config: Host host.com ControlMaster auto ControlPath ~/.ssh/master-%C # for openssh < 6.7 ...


1

If you have control of the machine to the point that you are automating tasks on it, then why is adding your key to authorized_keys not an option? ssh-copy-id -i ~/.ssh/foo somehost@example.com Then you don't have to enter a password every time you connect. If the biggest problem is that connections take a long time to connect, you could reuse a single ...



Only top voted, non community-wiki answers of a minimum length are eligible