SSH

https://www.notion.so/SSH-9c7161e25674433ebef768b7eaff757c

Log into server with SSH keys

Generate SSH keys

1
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

1
ssh-copy-id user@remote_server

If ssh-copy-id is unavailable, please

1
2
cat ~/.ssh/id_rsa.pub | ssh user@remote_server "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

This post is licensed under CC BY 4.0 by the author.