# ssh-keygen -t rsa # ssh git@192.168.1.2 'cat >> .ssh/authorized_keys' < ~/.ssh/id_rsa.pub
IP换成需要访问的服务器IP
# ssh-keygen -t rsa # ssh git@192.168.1.2 'cat >> .ssh/authorized_keys' < ~/.ssh/id_rsa.pub
IP换成需要访问的服务器IP
转载于:https://www.cnblogs.com/duandian/p/9600367.html