[[email protected] .ssh]# ssh-copy-id -i id_rsa.pub " -p22 [email protected]" [email protected]150.57.38.226‘s password: Now try logging into the machine, with "ssh ‘ -p22022 [email protected]‘", and check in: .ssh/authorized_keys to make sure we haven‘t added extra keys that you weren‘t expecting.
#注意指定端口和用户@IP是用双引号的!!!!
时间: 2024-10-28 03:17:58