If you frequently connect to a particular host via SSH, you might find it easier to use an alias for that host. This can easily be achieved by modifying ~/.ssh/config (on Windows its %USERPROFILE%.ssh\config) and adding the host configuration like so:
Host alias1
Hostname myhost.com
Port 22
User james.hartig
IdentityFile ~/.ssh/keys/id.rsa
The Port and IdentityFile params are optional but can be used to change the default port and add a SSH key if you don’t use Pageant
blog comments powered by Disqus