Skip to content

SSH#

Generate SSH key#

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

Connect to server#

ssh user@your.server.com

Connect with custom key#

ssh -i /path/to/id_rsa user@your.server.com

View public key#

cat ~/.ssh/id_rsa.pub

View private key#

cat ~/.ssh/id_rsa