Adding SSH Key Login and Troubleshooting
· ☕ 6 min read
1. Steps to Add a Key 1.1 Generate an SSH Key on the Client There are two key formats:
Old format, the private key begins with -----BEGIN RSA PRIVATE KEY----- 1 ssh-keygen -m PEM -t rsa -b 4096 -C "mail@chenshaowen.com" New format, the private key begins with -----BEGIN OPENSSH PRIVATE KEY----- 1 ssh-keygen -t rsa -b 4096 -C "mail@chenshaowen.