DRBD分布式复制块设备drbd83.x86_648.3.15-2.el5.centosextraskmod-drbd83.x86_648.3.15-3.el5.centosextrasyum-yinstalldrbd83.x86_64kmod-drbd83.x86_641.同步时间2.主机名3.ssh互信yum-yinstalldrbd83.x86_64kmod-drbd83.x86_642台机器新增硬盘分区(重点是都不要格式化)cp/u..
分类:
其他好文 时间:
2016-01-11 01:36:47
阅读次数:
229
添加了ssh互信,但一直提示如下错误。Failed to connect to repository : Command "git ls-remote -h git@git.xxx.cn:xxxxx HEAD" returned status code 128:stdout:stderr: Host...
分类:
其他好文 时间:
2016-01-02 00:56:27
阅读次数:
289
具体配置:前题需要关闭iptables和SELinux1、打开ssh配置文件,启用以下选项vim/etc/ssh/sshd_configRSAAuthenticationyes#允许RSA认证PubkeyAuthenticationyes#允许公钥认证AuthorizedKeysFile.ssh/authorized_keys#公钥存放地址#PermitRootLoginyes如果要以root身份ssh互信登..
分类:
其他好文 时间:
2015-12-17 19:23:58
阅读次数:
155
1.expect方法#!/bin/bashcheckTrust(){ expect -c ' set timeout 2; spawn ssh $1 "expr 12345678 + 87654321" expect { ...
分类:
其他好文 时间:
2015-11-12 11:42:17
阅读次数:
323
1.环境说明master192.168.0.223mesos-masterslave192.168.0.225mesos-salve2.环境准备关闭防火墙关闭selinux两台机器修改主机名master/slave设置hosts,能互相解析3.master和slave配置ssh互信这里配置hadoop用户双机互信,因为hadoop用hadoop用户启动master
yum-yinstallsshpas..
分类:
其他好文 时间:
2015-11-10 19:39:15
阅读次数:
386
ssh-keygen生成密钥1.ssh-keygen-trsa可以加密和签名rsa只能加密不能签名2.ssh-copy-id-i/root/.ssh/id_rsa.pubUSERNAME@HOST公钥-i指定密钥文件单向的登录命令执行sshUSERNAME@IP“COMMAND”返回到本地主机
分类:
其他好文 时间:
2015-10-20 11:56:24
阅读次数:
190
在前一篇文章的拓扑中将两台Director去掉后进行以下操作。两台服务器上ssh互信ssh-keygen-trsa-f~/.ssh/id_rsa-P‘‘ssh-copy-id-i~/.ssh/id_rsa.pubroot@192.168.1.3yum-yinstallpacemaker#在centos6.4上,yum安装pacemaker时会自动安装corosync在Server1上:1.改配置文件:cd/e..
分类:
其他好文 时间:
2015-10-13 19:22:41
阅读次数:
182
前言在部署ansible过程中,刚开始我把被控制端的密码明文的写在了/etc/ansible/hosts中考虑到安全问题,因为ansible不需要安装客户端和服务端,原因是基于ssh连接。正因此可以创建ssh互信控制端和被控制端。一、文件iplist该文件是记录被控制端的ip要和/etc/ansible/hosts定义..
分类:
其他好文 时间:
2015-10-12 01:58:16
阅读次数:
180
1.环境准备: 安装Centos6.5的操作系统 下载hadoop2.7文件 下载jdk1.8文件2.修改/etc/hosts文件及配置互信: 在/etc/hosts文件中增加如下内容: 192.168.1.61host61 192.168.1.62host62 192.168.1.63host63 配置好各服务器之间的ssh互信3.添加用户,解压文件并配置环境变量: us..
分类:
其他好文 时间:
2015-09-30 01:05:37
阅读次数:
225
一、设置服务器安全与SSH互信改SSH默认端口、允许访问的IP/etc/hosts.allowdeny两个文件控制[root@localhost~]#cat/etc/hosts.deny
#
#hosts.denyThisfilecontainsaccessruleswhichareusedto
#denyconnectionstonetworkservicesthateitheruse
#thetcp_wrapperslibraryorthathav..
分类:
数据库 时间:
2015-09-17 17:43:23
阅读次数:
345