当前位置: 首页 > news >正文

做网站需要加班吗做生鲜管理系统的网站

做网站需要加班吗,做生鲜管理系统的网站,建设学校网站需要具备,seo外链高质量网站介绍:我们在部署无密码访问时,如果手工输入.很费时间.下面方法用于自动化生成authorized_keys,免去了手工数据.方法: 利用expect编写sshkey.exp在远程主机上生成id_rsa,并重定向到本地.在利用noscp.exp.把文件复制到远程主机步骤:(本方法在centos6.4 上验证通过)1 本地执行ssh-…介绍:我们在部署无密码访问时,如果手工输入.很费时间.下面方法用于自动化生成authorized_keys,免去了手工数据.方法: 利用expect编写sshkey.exp在远程主机上生成id_rsa,并重定向到本地.在利用noscp.exp.把文件复制到远程主机步骤:(本方法在centos6.4 上验证通过)1 本地执行ssh-keygen -t rsa2 编写脚本生成 authorized_keys (比如现在有cloud1 和 cloud2 服务器)./sshkey.exp  cloud1 root root123 | grep ssh-rsa ~/.ssh/authorized_keys./sshkey.exp  cloud2 root root123 | grep ssh-rsa ~/.ssh/authorized_keys3 对于需要建立免密码输入的,把文件拷贝上去./noscp.exp ~/.ssh/authorized_keys cloud1:~/.ssh root root123./noscp.exp ~/.ssh/authorized_keys cloud2:~/.ssh root root1234. 脚本说明./sshkey.exp  主机名 用户名  密码  (在远程主机生成id_rsa)./noscp.exp   本地文件 远程路径  远程用户密码   (无密码拷贝文件)注意:每个主机上必须安装 openssh-clients#!/usr/bin/expect#sshkey.expif {$argc3} {puts stderr Usage: $argv0 host  user  passwd exit 1}set host [ lindex $argv 0 ]set user  [ lindex $argv 1 ]set pwd  [ lindex $argv 2 ]set timeout 30#spawn ssh  ${user}${host} rm -rf ~/.ssh/id_rsa*##expect {# *yes/no { send yes\r; exp_continue }# *password: { send $pwd\r; exp_continue  }#}spawn ssh  ${user}${host} ssh-keygen -t rsaexpect {*yes/no { send yes\r; exp_continue }*password: { send $pwd\r; exp_continue  }Enter file in which to save the key* { send \n\r; exp_continue }Overwrite* { send y\n; exp_continue }Enter passphrase (empty for no passphrase): { send \n\r; exp_continue }Enter same passphrase again: { send \n\r }}spawn ssh  ${user}${host} cat ~/.ssh/id_rsa.pubexpect {*yes/no { send yes\r; exp_continue }*password: { send $pwd\r  }}expect eof#!/usr/bin/expect#noscp.expif {$argc4} {puts stderr Usage: $argv0 localfile  remotefile user passwd exit 1}set localfile [ lindex $argv 0 ]set remotefile  [ lindex $argv 1 ]set user  [ lindex $argv 2 ]set pwd  [ lindex $argv 3 ]set timeout 30spawn scp ${localfile}  ${user}${remotefile}expect {*yes/no { send yes\r; exp_continue }*password: { send $pwd\r }}expect eof
http://www.pierceye.com/news/912280/

相关文章:

  • 做透水砖的网站下载爱南宁乘车
  • 免费建设工程信息网站许昌市建设路小学网站
  • 网站建设公司华网天如何设置自己的网址
  • 株洲做网站那家好黑龙江网站设计
  • 培训视频网站百度权重划分等级
  • 重庆江北区网站建设怎么查询网站建设时间
  • 做网站一个月能挣多少怎么做营销推广
  • 网站做镜像检查漏洞网站建设需要哪些步骤
  • 广州手机建设网站wordpress 读者墙
  • 大桥石化集团网站谁做的wordpress建站吗
  • 手机行业网站做网站用什么环境
  • 百度做网站刷排名国外做图标网站
  • 常州好的网站设计公司企业策划方案怎么做
  • 厂房出租做推广什么网站好网站做自适应的好处
  • 网站木马文件删除青岛黄岛网站建设公司电话
  • 一个网站做网站地图的目的企业网站建设框架图
  • 网站建设 swot分析深圳市龙华区繁华吗
  • h5 小米网站模板直接通过ip访问网站
  • 公司建设个网站制作装饰公司网站
  • 高质量的网站内容建设做网站信科网站建设
  • 网站建设倒计时模板学校室内设计效果图
  • 海东营销网站建设公司东莞网络优化排名
  • 株洲网站建设服务建筑公司怎么注册
  • 心理学网站的建设网站开发公司比较有名
  • 需要做网站设计海南网页制作
  • 开发网站有什么用仿站小工具官网
  • 支付宝网站登录入口个人微信公众号如何推广
  • 北京网站制作net2006常见的营销型网站
  • 设计建设网站公司天津市建设信息网官网
  • 企业网站建站 费用比较有名的个人网站