osx passwordless login to linux ssh quick connect with rsa key how to generate key file ssh-keygen -t rsa copy key file to server ssh-copy-id -i ~/.ssh/id_rsa.pub user@server for less typing add server ip to /etc/hosts file use same user name for client shell and server shells detailed information https://help.dreamhost.com/hc/en-us/articles/216499537-How-to-configure-passwordless-login-in-Mac-OS-X-and-Linux