SSH
· One min read
Log into server with SSH keys
Generate SSH keys
ssh-keygen -t rsa -b 4096
Your keys will be created at ~/.ssh/id_rsa.pub and ~/.ssh/id_rsa
Transfer Your Public Key to the Server
ssh-copy-id user@remote_server
If ssh-copy-id is unavailable, please
cat ~/.ssh/id_rsa.pub | ssh user@remote_server "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"