Oneliner将公钥添加到远程服务器授权密钥
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oneliner将公钥添加到远程服务器授权密钥相关的知识,希望对你有一定的参考价值。
Instead of ~/.ssh/id_rsa.pub, you can choose any location on your local machine where your *public* key lives.You may need to adjust the file permissions on remote authorized_keys aftwterwards, depending on the configuration of the remote ssh server.
ssh user@host 'mkdir ~/.ssh; echo '`cat ~/.ssh/id_dsa.pub`' >> ~/.ssh/authorized_keys'
以上是关于Oneliner将公钥添加到远程服务器授权密钥的主要内容,如果未能解决你的问题,请参考以下文章