码迷,mamicode.com
首页 > 系统相关 > 详细

linux免密登录配置

时间:2018-10-18 22:04:24      阅读:248      评论:0      收藏:0      [点我收藏+]

标签:脚本批量   使用   file   chm   第一步   install   权限   Opens   centos6   

第一步:安装openssh-clients
  yum install -y openssh-clients.x86_64
第二步:生成密钥
  ssh-keygen
第三步:拷贝公钥到其他机器
  ssh-copy-id hostname

 

使用脚本批量配置免密登录

  环境:centos6.10

  安装脚本编程交互工具expect

    yum install -y expect

  编写脚本

  auto_passphraseless_profile.sh

  


  给执行权限 chmod +x auto_passphraseless_profile.sh

  

  后面补充。。。

linux免密登录配置

标签:脚本批量   使用   file   chm   第一步   install   权限   Opens   centos6   

原文地址:https://www.cnblogs.com/cqdxwjd/p/9813048.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!