hosea1008
4/30/2018 - 7:53 AM

Linux SSH 免密登陆

Linux SSH 免密登陆

ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub | ssh hsli@thumm08 "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"