you have an account on server and you have to login frequently, you are tired of typing ssh ……/ password?
RSA is your solution!
Firstly, goto home directory
make sure you have a writable folder called ".ssh", if not you can create that folder:
mkdir .ssh chmod +x .ssh
Secondly, generate rsa-key:
ssh-keygen -t rsa
You will be asked to provide some information such as where you want to save passphrase ( default is empty)… so on.
You can skip and leave it as default by just press key.
Then your key is created randomly.
The third, you have to upload your rsa-key to server:
At this step, you will be asked the password of the server, just enter it.
To check whether you are success or not just try to login server ( if server donot ask your password, you are done!)
If you have multi machine, you have to concentrate authorized_keys file by adding content of id_rsa.pub to authorized_keys on server.
Still complex if you have a long server name!
open your .bashrc file:
add following line at the end of bashrc:
alias NAME_YOU_WANT='ssh USER@SERVERNAME'
replace NAME_YOU_WANT by something you want it to be
USER= your user name
SERVERNAME= your server name.
logout and login your session ( to reload bashrc file) or simple ways: source ~/.bashrc
then to login to server, just type: NAME_YOU_WANT