教會(huì)你在suse enterprise 10 下怎樣開啟ssh的方法
學(xué)習(xí)SUSE enterprise 10時(shí),你可能會(huì)遇到SUSE enterprise 10問(wèn)題,這里將介紹SUSE enterprise 10問(wèn)題的解決方法,在這里拿出來(lái)和大家分享一下。今天講的是在suse enterprise 10 下怎樣開啟ssh。
默認(rèn)防火墻是關(guān)閉的。
#netstat -ant|grep 22 //查看22端口狀態(tài)
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
如果防火墻是關(guān)閉的。
#yast: Yet Another System Tool,在firewall中設(shè)定允許ssh通過(guò)。
#ssh restart: 重新啟動(dòng)ssh服務(wù)
啟動(dòng)ssh服務(wù)
#service sshd start
#service sshd restart
停止服務(wù)器:
#service sshd stop
本文向大家介紹SUSE enterprise 10的一些東西,可能好多人還不了解SUSE enterprise 10,沒(méi)有關(guān)系,看完本文你肯定有不少收獲,希望本文能教會(huì)你更多東西。
【編輯推薦】