If you deal with a lot of servers and SSH connections, then this post is a must read for you, welcome.
I will go through some easy tricks, which will make your SSH login to server without asking a things.
How to setup :
- Setup key based SSH access
- Command alias
Start with issuing following commands :
$ ssh-copy-id -i ~/.ssh/YourFileName.pub email@example.com
now open you ~/.bashrc file, and add alias. Paste this code in the end of your .bashrc file, and change values accordingly
alias conny='ssh user@server'
Save and exit, thats it, you just run $ conny or any other name you wrote there. It will setup an SSH connection directly to the server.