scp 无密码在两台主机之间拷贝文件

用scp 在两台主机之间相互之间拷贝文件,还是方面!但是需要密码!怎么样才能无密码相互之间拷贝文件呢!
以下就实现是方法!
在A主机上运行

#ssh-keygen -t  rsa
[root@localhost ~]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
61:34:37:bd:03:aa:c8:85:0d:e9:d0:b6:6e:c2:50:89 root@localhost
这样会在/root/.ssh/有两个 id_rsa ,id_rsa.pub.

id_rsa.pub复制目标服务器上的/root/.ssh/里,并改名authorized_keys
例如 scp /root/.ssh/is_rsa.pub root@B:/root/.ssh/aut

32 thoughts on “scp 无密码在两台主机之间拷贝文件

  1. Pingback: ربح المال من الانترنت

  2. Pingback: www.cbdadverts.com

  3. Pingback: Fojart Marketing

  4. Pingback: retirement selfie frame

  5. Pingback: ลงประกาศฟรี

  6. Pingback: porn videos & hot pussy fuck

  7. Pingback: porn

  8. Pingback: cancer plans

  9. Pingback: 안전바카라

  10. Pingback: wrap your boards

  11. Pingback: 카지노사이트

  12. Pingback: Topmost private universities

  13. Pingback: 놀이터추천

  14. Pingback: new york seo

  15. Pingback: Replica rolex daytona silver

  16. Pingback: judi online

  17. Pingback: Dental Training

  18. Pingback: 바카라 사이트 신고

  19. Pingback: opinie

  20. Pingback: 바카라 사이트 통장

  21. Pingback: 바카라 사이트 먹튀

  22. Pingback: Eddie Frenay

  23. Pingback: Juche

  24. Pingback: poker online

  25. Pingback: Types Of Fishing Poles

  26. Pingback: akc english bulldog puppies for sale in georgia

  27. Pingback: replica-watches.org

  28. Pingback: 먹튀사이트

  29. Pingback: buy oxy 20mg for sale online without prescription

  30. Pingback: 토토사이트

  31. Pingback: Weed for sale

  32. Pingback: living sex doll

Leave a Reply