Linux A机器免密码SSH登录B机器

上传:zw-lingsi 浏览: 18 推荐: 0 文件:PDF 大小:39.35KB 上传时间:2021-02-01 07:11:15 版权申诉
一、问题 如上,A机器经常需远程操作B机器,传输文件到B机器,每次输入帐号密码过于繁琐,下文通过ssh公钥能解免密码操作问题。 二、解决 1.方案 SSH认证采用公钥与私钥认证方式。 2.步骤 1) A机器生成公钥/私钥对 [root@host-08 ~]# ssh-keygen -t rsa -P '' Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Your identification has bee
上传资源
用户评论