Posts

Showing posts with the label mac

Manage an ssh alias from Linux or Mac terminal

in ~/bash_profile, add the following line alias alias-test ='ssh -i <path to private key - pem file> ubuntu@<Target IP address or domain name>' Example: alias-test=' ssh -i /home/dummy/alias-check.pem ubuntu@123.123.345.345' ~ stands for home directory (like /home/<username>) Now from terminal type short word and you will have done ssh login very quickly. $alias-test