上一篇:Virtual Box 虚拟机复制_fengxianaa的博客-CSDN博客
在 ~/.ssh 目录下生成一对密匙
[root@localhost ~]# cd .ssh root@localhost .ssh]# ssh-keygen -t rsa
执行 ssh-keygen -t rsa,会有提示,不要管它,一直回车
上图,第一个是私钥,第二个是公钥
把 id_rsa.pub 上传到要登陆的服务器,并重新命名为:authorized_keys
不需要密码直接登陆成功
上一篇:Virtual Box 虚拟机复制_fengxianaa的博客-CSDN博客
在 ~/.ssh 目录下生成一对密匙
[root@localhost ~]# cd .ssh root@localhost .ssh]# ssh-keygen -t rsa
执行 ssh-keygen -t rsa,会有提示,不要管它,一直回车
上图,第一个是私钥,第二个是公钥
把 id_rsa.pub 上传到要登陆的服务器,并重新命名为:authorized_keys
不需要密码直接登陆成功