OpenSUSE無法通過SSH連接
一、使用命令行:rpm -qa | grep ssh查看是否已安裝ssh。
linux-kelh:~ # rpm -qa | grep ssh
openssh-5.8p1-4.1.i586
libssh4-0.4.8-7.1.i586
ksshaskpass-0.5.3-2.1.i586
libssh2-1-1.2.7-3.1.i586
openssh-askpass-5.8p1-4.1.i586
libnsssharedhelper0-1.0.9-6.1.i586
如果存在如上顯示,則表示已經安裝ssh服務,反之沒有安裝。
再使用命令行:service sshd status查看ssh服務是否開啓
二、配置SSH服務:
1. 修改配置文件
#vi /etc/ssh/sshd_config
2. 找到#PermitRootLogin no將其修改爲PermitRootLogin yes
三、查看sshd服務狀態
命令行輸入yast回車,啓動yast界面,選擇
System -> SystemServices(Runlevel),檢查sshd狀態已經是Enabled。如果不是使用F3啓用。
linux-kelh:~ # rpm -qa | grep ssh
openssh-5.8p1-4.1.i586
libssh4-0.4.8-7.1.i586
ksshaskpass-0.5.3-2.1.i586
libssh2-1-1.2.7-3.1.i586
openssh-askpass-5.8p1-4.1.i586
libnsssharedhelper0-1.0.9-6.1.i586
如果存在如上顯示,則表示已經安裝ssh服務,反之沒有安裝。
再使用命令行:service sshd status查看ssh服務是否開啓
二、配置SSH服務:
1. 修改配置文件
#vi /etc/ssh/sshd_config
2. 找到#PermitRootLogin no將其修改爲PermitRootLogin yes
三、查看sshd服務狀態
命令行輸入yast回車,啓動yast界面,選擇
System -> SystemServices(Runlevel),檢查sshd狀態已經是Enabled。如果不是使用F3啓用。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.