How do I save my previous ssh sessions

I currently have to SSH into many different systems. Is there a way to for me to save the hostname / IP of the host so that I do not have to constantly type in the hostname / IP address every time I want to start a new SSH session? Basically I would like to replicate Putty's save sessions ability on Ubuntu 12.04.4.

Kind Regards,

Tim


You can use the ~/.ssh/config file for this. I'll give you an example:

HOST <yourHost>
    HostName <IP or DNS of the Host>
    Port <port (just needed if other then the standard (22))>
    User <username to connect>
    IdentityFile <path to an private keyfile (optional) - you can use ~, also>

If you have more than one host just repeat this sections for every host...

to use it just type ssh <yourHost>.

Hope this helps!