• 欢迎访问金笔头博客,这是一个菜鸟(伪)程序员的自留地,欢迎访问我的github:点击进入

[解决方案]SUSE Linux Enterprise 11 SP3 64bit SSH登录失败

SuSE eason 3672次浏览 4个评论 扫描二维码

问题:昨天给公司安装好SUSE Linux Enterprise 11 SP3 64bit系统之后,使用Xshell登录一直显示连接失败,上网查了下说是SUSE默认没有开启密码验证和防火墙没有开放22号端口。

解决方案:

1.编辑ssh_config 文件, 找到PasswordAuthentication no,将no改为yes

Linux-suse: ~/Desktop#vi /etc/ssh/ssh_config

[解决方案]SUSE Linux Enterprise 11 SP3 64bit SSH登录失败

2.重启SSH服务

Linux-suse: ~/Desktop#service sshd restart

3.编辑防火墙,开启22号端口

Linux-suse: ~/Desktop#vi /etc/sysconfig/SuSEfirewall2

[解决方案]SUSE Linux Enterprise 11 SP3 64bit SSH登录失败

4.重启防火墙让配置生效

Linux-suse: ~/Desktop#rcSuSEfirewall2 restart

5.再次使用Xshell登录,连接成功!

Connecting to 192.168.10.235:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Last login: Thu Nov 12 17:10:28 2015 from console
linux-suse:~ # whoami
root
linux-suse:~ # pwd
/root
linux-suse:~ # 

金笔头博客, 版权所有丨如未注明 , 均为原创, 转载请注明[解决方案]SUSE Linux Enterprise 11 SP3 64bit SSH登录失败
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(4)个小伙伴在吐槽
  1. I feel that is one of the such a lot important info for me. And i am glad studying your article. However should statement on few basic things, The site taste is wonderful, the articles is in reality excellent : D. Just right activity, cheers
    cheap genuine ray ban sunglasses uk2015-12-27 02:18 Reply Windows 7 | 未知浏览器
    • thank you :smile:
      wangyisheng2015-12-28 17:00 Reply Windows 7 | Chrome 47.0.2526.106
  2. Thank you for some other informative website. The place else may I get that type of information written in such a perfect manner? I've a venture that I am just now working on, and I've been on the glance out for such information.
    uggs kensington kopen2015-12-11 01:07 Reply Windows 7 | 未知浏览器
    • :razz:
      wangyisheng2015-12-11 21:48 Reply Windows 7 | Chrome 45.0.2454.101