Add ssh shortcut hostname to ~/.ssh/config

edit file: /home/username/.ssh/config

vim ~/.ssh/config

ad below code for each host

Host choose_short_name
HostName 192.168.7.21
Port 22
User remote_user
IdentityFile /home/username/username_ssh_priv.key

2017-01-24T14:15:25+00:00 January 24th, 2017|Linux, Security, Ubuntu|