use redis skip ansible gather information step....
分类:
其他好文 时间:
2015-06-17 13:32:14
阅读次数:
175
安装SSH yum install ssh 启动SSH service sshd start 设置开机运行 chkconfig sshd on 相关配置文件修改 [root@sample ~]# vi /etc/ssh/sshd_config ← 用vi打开SSH的配置文件 ? #Protocol 2,1 ← 找到此行将...
分类:
其他好文 时间:
2015-06-16 17:10:26
阅读次数:
106
今天安装了UbuntuServer14.04发现配置了root密码后竟然不能ssh登陆,但是suroot正常!why?原来新版本里面sshd_config里面有了限制#vim/etc/ssh/sshd_config#Authentication:LoginGraceTime120#PermitRoo...
分类:
系统相关 时间:
2015-06-15 00:12:17
阅读次数:
129
linux修改端口22vi /etc/ssh/sshd_config找到#port 22将前面的#去掉,然后修改端口 port 1234重启服务就OK了service sshd restart或/etc/init.d/ssh restart为增强安全先增加一个普通权限的用户,并设置密码useradd...
分类:
其他好文 时间:
2015-06-12 16:42:43
阅读次数:
146
前言作为运维人员,当面对几十台或上百台服务器需要修改某个参数或部署某个平台,你将从何入手呢?ansible的出现很好的解决了这一困扰,ansible基于Python开发,集合了众多运维工具(puppet、cfengine、chef、func、fabric)的优点,实现了批量系统配置、批量程序部署、批量运..
分类:
其他好文 时间:
2015-06-10 15:57:09
阅读次数:
338
Linux修改ssh端口22vi/etc/ssh/ssh_configvi/etc/ssh/sshd_config然后修改为port8888以root身份servicesshdrestart(redhatas3)使用putty,端口8888Linux下SSH默认的端口是22,为了安全考虑,现修改SSH的端口为1433,修改方法如下:/usr/sbin/sshd-p1433为增强安全先增加一个普通权..
分类:
系统相关 时间:
2015-06-09 17:43:24
阅读次数:
182
serverresponded"connectionclosed"theconnectiontotheremotehostlinux系统的SSH连接不上。第一步,先查看一下ssh的默认端口是否22[root@MyServer~]#cat/etc/ssh/sshd_config|grepPort第二步,是查看一下iptables防火墙规则,也发现没有问题。[root@MyServer~]#cat/etc/sysconf..
分类:
其他好文 时间:
2015-06-09 06:18:39
阅读次数:
142
本文针对一台服务器有多个网卡及IP地址的情况,可以限制某些IP不监听SSH,只允许通过某些IP来登陆以下配置项在/etc/ssh/sshd_config文件中修改比如你有4个网卡:eth0 – 192.168.10.200eth1 – 192.168.10.201eth2 – 192.168.10....
分类:
其他好文 时间:
2015-06-08 11:33:21
阅读次数:
219
SSH相关配置
1、修改ssh监听端口
#注意是sshd_config而非ssh_config
/etc/ssh/sshd_config
#将Port22前面的#去掉并添加修改后ssh连接使用的端口
Port22
#添加多一个22222端口作为ssh连接使用
Port22222
#同时将22和22222作为ssh连接端口,是为了防止错误操作致使ssh无法连接..
分类:
其他好文 时间:
2015-06-06 23:48:28
阅读次数:
218
前提配置:使用root登录修改配置文件:/etc/ssh/sshd_config,将其中三行的注释去掉,如下
然后重启ssh服务:service sshd restart。最后退出root,以下所有操作都在hadoop用户下进行。
主机信息如下:
如上图,当前登录用户为hadoop,主机名为slave.hadoop,与master.hadoop主机的网络是通畅的。
当前未配...
分类:
其他好文 时间:
2015-06-06 16:39:03
阅读次数:
161