Linux ssh key 远程登录

一、生成公钥

ssh-keygen -t ed25519 -C "[email protected]"
#输入相关信息一直回车

二、用ssh-copy-id将公钥复制到远程机器中

ssh-copy-id -i id_rsa.pub  [email protected]

猜你喜欢

转载自blog.csdn.net/gxhea/article/details/129270458