[root@NB .ssh]# ssh-copy-id  -i id_rsa.pub " -p22 root@150.57.38.226"
root@150.57.38.226's password: 
Now try logging into the machine, with "ssh ' -p22022 root@123.57.36.227'", and check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

#注意指定端口和用户@IP是用双引号的!!!!

相关文章:

  • 2022-12-23
  • 2022-01-23
  • 2021-11-04
  • 2022-12-23
  • 2021-06-01
  • 2021-07-12
  • 2021-06-08
  • 2021-07-03
猜你喜欢
  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
  • 2021-08-24
  • 2021-08-13
  • 2021-03-26
  • 2022-12-23
相关资源
相似解决方案