Open config file vi ~/.ssh/config Edit config file Host your_host HostName x.x.x.x User user IdentityFile ~/.ssh/xxx.pem IdentitiesOnly yes Port 22 Access using alias ssh your_host