Multiple Connections
Often it’s useful to have multiple connections to the same server.
ControlMaster auto
ControlPath /tmp/ssh_mux_%h_%p_%r
Repeated Connections
If you find yourself making multiple consecutive connections to the same server then enablepersistent connections.
ControlPersist 4h
Passwords
If currently you type a password when making an SSH connection, you can make connecting much more pleasant by setting up SSH keys.
$ ssh-keygen
$ ssh-copy-id username@host.example.org
Hostname Aliases and Usernames
You can also define hostname aliases in SSH config, though this can involve listing each hostname. If your username on a remote server is different from your local username, specify this in your SSH config as well.
Host host1 host2 host3
HostName %h.example.org
User username
References:
No comments:
Post a Comment