详细解析SUSE Linux Enterprise Desktop 10 ssh设置

系统 Linux
最近很多人都开始学习SUSE,我也开始研究研究了一下SUSE Linux Enterprise Desktop 10 ,下面开始讲讲SUSE Linux Enterprise Desktop 10 ssh设置。前晚装了这个版本,感觉它的gome桌面比Ubuntu 8和Fedora版本都要好看。

最近很多人都开始学习SUSE,我也开始研究研究了一下SUSE Linux Enterprise Desktop 10 ,下面开始讲讲SUSE Linux Enterprise Desktop 10 ssh设置。前晚装了这个版本,感觉它的gome桌面比Ubuntu 8和Fedora版本都要好看。呵呵,其实大家都用一样的东西。

这次在SUSE上使用SSH时遇到点麻烦,所以总结一下小经验。SSH, 即Secure Shell,是一种网络协议,允许在两台计算机之间建立一条安全通道以交换数据。更多信息可参考http://en.wikipedia.org/wiki/Secure_Shell。

一般Linux发行版本,例如Ubuntu和SUSE,都默认安装了OpenSSH工具包。完成系统安装,重新启动后,作为服务端的sshd (SSH Daemon)会作为系统服务之一被启动(注:daemon解释为守护进程)。同时一个SSH工具也安装好了,openSSH程序包的一部分,是远程登录客户端程序。默认安装路径:
ssh    -   /usr/bin/ssh        对应的配置文件/etc/ssh/ssh_config
sshd - /usr/sbin/sshd     对应的配置文件/etc/ssh/sshd_config

我只想使用密码登录方式,所以修改了/etc/ssh/sshd_config文件的PasswordAuthentication参数,该参数默认为no,意思是不允许通过密码认证登录;所以这里改为 yes。默认下/etc/ssh/ssh_config也有这个参数,默认是yes,所以不用修改。修改参数后,在命令行输入ssh restart后重新启动sshd服务。

这次碰到的问题是,在SUSE登录后,在命令界面使用ssh 192.168.2.101能正常登录,但是在另一台Windows系统上面用putty登录时却显示连接超时,登录失败!putty这边设置没有问题,那么问题可能出在SUSE系统本身或者两台电脑之间的通信。

使用yast查看sshd服务的状态,在命令行输入yast回车,启动yast界面,选择“System > System Services (Runlevel)”,打开System Services (Runlevel):Services界面,检查sshd状态已经是Enabled。使用功能键Alt + E转到Expert Mode, 观察到当前sshd运行在Runlevel 5, (Full multiuser with network and display manager),这都没有问题。

到网上查查,最后在一个论坛里有人提到检查firewall,需要关闭firework。于是选择在yast中选择“Security and Users > Firewall”,在Firewall configuration界面将Service Start启动方式修改为Manually,然后执行“Stop Firewall Now”,保存修改!

重新启动sshd,再到Windows下试试,一切正常了!

注:yast, Yet Another System Tool的缩写。希望本文对你有所帮助。

【编辑推荐】

  1. SUSE Moblin闪耀你的眼球
  2. 详解OpenSUSE 11.1硬盘安装
  3. 学习手札:加强Suse Linux操作系统安全
  4. Open Suse Linux平台迁移好与坏
  5. 正确选择:Suse Linux Enterprise Server
责任编辑:小霞 来源: NET130
相关推荐

2009-11-23 14:48:44

SUSE linux

2009-11-26 10:48:44

安装SUSE Linu

2009-11-27 10:15:26

Suse Linux

2009-11-26 11:29:48

安装SUSE Linu

2009-12-03 18:31:37

SUSE Linux

2009-05-13 07:36:24

LinuxSUSEEnterprise

2009-05-13 07:59:11

NovellSuseLinux

2009-11-24 09:53:37

SUSE enterp

2009-03-31 16:53:10

LinuxNovellEnterprise

2009-05-13 07:40:29

LinuxSuseenterprise

2009-05-13 07:42:58

LinuxSUSEEnterprise

2009-11-30 14:23:40

Suse Linux

2009-03-26 17:15:09

NovellLinux Enterprise

2009-05-13 07:22:09

LinuxSuseEnterprise

2009-11-26 16:43:05

SUSE Linux

2009-11-26 11:14:17

安装SUSE Linu

2009-11-24 10:06:21

SUSE enterp

2009-11-24 10:20:36

SUSE Enterp

2009-03-24 17:04:02

SUSE Linux 发布

2009-12-03 10:54:22

SUSE Linux
点赞
收藏

51CTO技术栈公众号