$ ssh user@host 'mkdir -p .ssh && cat >> .ssh/authorized_keys' < ~/.ssh/id_rsa.pub ##将本地公钥id_rsa.pub传给远程主机
$ ssh user@host 'mkdir -p .ssh && cat >> .ssh/authorized_keys' < ~/.ssh/id_rsa.pub ##将本地公钥id_rsa.pub传给远程主机
转载于:https://www.cnblogs.com/hopkings/p/6442019.html