— create ssh keys

ssh-keygen -t rsa

# linux
ssh-copy-id [user@]host

# macos
cat ~/.ssh/id_rsa.pub | ssh user@machine "mkdir -p ~/.ssh; cat >> ~/.ssh/authorized_keys"
eval `ssh-agent`
ssh-add