Chinaunix

标题: linux中SSH服务器配置 [打印本页]

作者: 付泉石    时间: 2008-12-03 12:52
标题: linux中SSH服务器配置
linux中SSH服务器配置
SSH远程登录
检查是否安装
[root@ns ~]# rpm -qa |grep openssh
openssh-askpass-4.3p2-26.el5
openssh-4.3p2-26.el5
openssh-clients-4.3p2-26.el5
openssh-server-4.3p2-26.el5
[root@ns ~]#
配置文件在
[root@ns ~]# vi /etc/ssh/sshd_config
#Port 22           (使用22号端口)
#Protocol 2,1     (先使用SSH2协议,后使用SSH1)
Protocol 2  (使用SSH2协议)
#AddressFamily any
#ListenAddress 0.0.0.0 (所有IP都可以连接0)
#PermitRootLogin yes   (是否允许以root的身份登入)
#PermitEmptyPasswords no    (是否允许空密码登入)
#PasswordAuthentication yes (是否使用口令认证方式)
[root@ns ~]# service sshd restart (重启才生效)
windows平台PuTTY软件
Linux平台
[root@ns ~]# rpm -qa |grep openssh
openssh-askpass-4.3p2-26.el5
openssh-4.3p2-26.el5
openssh-clients-4.3p2-26.el5(主要)
openssh-server-4.3p2-26.el5
所需软件包。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/86659/showart_1677234.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2