a、ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
b、cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
c、chmod 600 ~/.ssh/authorized_keys
d、sudo service sshd restart
2023-02-22 18:26:40
a、ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
b、cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
c、chmod 600 ~/.ssh/authorized_keys
d、sudo service sshd restart