Use Your SSH Config File to Create Aliases for Hosts
This trick is for Linux and SSH users who often log in to remote systems. Having to type the same info over and over again is mind-numbingly repetitive, but using an SSH config file makes the process much more convenient. It’s pretty easy to turn scp –P 50001 username@remote.sshserver.com:somefile ./somefile ssh –p 50001 username@remote.sshserver.com into something quick: scp remotehost:somefile ./somefile ssh remotehost Aside from specifying port numbers, addresses, and user names, you can specify key files, time out intervals, and tons of other options. All it takes is one little file. Fire up a text editor and point it to this file: ~/.ssh/config Alternatively, you could put the contents and save it to that file, but it’s best to make sure to open it if it already exists. Here’s the basic format of what you need to put (or add to what you have). Replace “your_alias_name” with a short name for this connection. Something like “home,” “work,” or “asdf” ...