教會你在suse enterprise 10 下怎樣開啟ssh的方法
學習SUSE enterprise 10時,你可能會遇到SUSE enterprise 10問題,這里將介紹SUSE enterprise 10問題的解決方法,在這里拿出來和大家分享一下。今天講的是在suse enterprise 10 下怎樣開啟ssh。
默認防火墻是關閉的。
#netstat -ant|grep 22 //查看22端口狀態
suse:~ # netstat -ant|grep 22
tcp 0 0 :::22 :::* LISTEN
tcp 0 52 192.168.31.117:22 192.168.31.17:1282 ESTABLISHED
#/etc/ssh/ssh_config ---> PasswordAuthentication yes
/usr/bin/ssh: security shell:
#/etc/ssh/sshd_config ---> PasswordAuthentication yes
RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# BatchMode no
# CheckHostIP yes
# AddressFamily any
# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
# Port 22
# Protocol 2,1
/Password
如果防火墻是關閉的。
#yast: Yet Another System Tool,在firewall中設定允許ssh通過。
#ssh restart: 重新啟動ssh服務
啟動ssh服務
#service sshd start
#service sshd restart
停止服務器:
#service sshd stop
本文向大家介紹SUSE enterprise 10的一些東西,可能好多人還不了解SUSE enterprise 10,沒有關系,看完本文你肯定有不少收獲,希望本文能教會你更多東西。
【編輯推薦】