今天安装了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
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
前提:? 1.客户端生成了id_rsa.pub和id_rsa? 2.服务端在.ssh/authorized_keys也加入了客户端的id_res.pub? 3./etc/ssh/sshd_config开启了:? RSAAuthentication????yes??
PubkeyAuthentication????...
分类:
其他好文 时间:
2015-06-04 12:11:21
阅读次数:
115
命令: Pass: ************状态: Connected to 66.77.88.99错误: Connection closed by server with exitcode 127错误: 无法连接到服务器解决方法:vi /etc/ssh/sshd_config其中:“Subsyst...
分类:
其他好文 时间:
2015-06-03 13:37:15
阅读次数:
415
一.禁止root远程ssh登录、在/etc/ssh/sshd_config设置:PermitRootLoginno:二.禁止root本机登录将authrequiredpam_succeed_if.souser!=rootquiet添加到/etc/pam.d/login文件第一行
分类:
其他好文 时间:
2015-05-30 18:31:57
阅读次数:
149