You know very well about web browsers bookmarks for easily to remember that page, bookmarks option available on terminal for ssh. Its save your login time.
How to do :
You need to do is to open up ~/.ssh/config then add host, hostname, user and ssh port.
#### thelinuxfaq ######
host thelinuxfaq
hostname host.thelinuxfaq.com
user user_name
port 1234
host thelinuxfaq
hostname host.thelinuxfaq.com
user user_name
port 1234
Finally once saved the files then run below command for login directly, you do not give ssh port, ip address, user name (SSH Login format) every time.
$ ssh thelinuxfaq
The authenticity of host '[host.thelinuxfaq.com]:8624 ([192.168.0.22]:1234)' can't be established.
RSA key fingerprint is de:a7:41:12:45:11:c3:33:94:1b:aa:22:55:01:12:22.
Are you sure you want to continue connecting (yes/no)? yes
Comments (0)