ssh-免密码登录-2017-8-15
1.ssh-keygen-trsa
2.scp-r/root/.ssh/id_rsa.pubmyecs2-ip:/root/.ssh/authorized_keys
如果目标服务器上,已经存在了authorized_keys,那么就将id_rsa.pub中的内容追加到目标服务器的authorized_keys文件中
2.1cat/root/.ssh/id_rsa.pub|sshroot@myecs2-ip'cat>>/root/.ssh/authorized_keys'
相关推荐
tosim 2020-06-24
returnspace 2020-06-21
WanKaShing 2020-11-12
projava 2020-11-14
airfish000 2020-09-11
tryfind 2020-09-14
yegen00 2020-09-10
kkaazz 2020-09-03
风语者 2020-09-02
BraveWangDev 2020-08-19
lichuanlong00 2020-08-15
gsl 2020-08-15
pandaphinex 2020-08-09
yhuihon 2020-08-09
CheNorton 2020-08-02
xiangqiao 2020-07-28
hpujsj 2020-07-26
hpujsj 2020-07-26