2008年7月10日 星期四

架設SSH

環境:
Server IP:192.168.0.1

設定:
apt-get install ssh

vi /etc/ssh/sshd_config


#ListenAddress 0.0.0.0
.
.
.
PermitRootLogin yes

To

ListenAddress 192.168.0.1 #指定開放伺服器的IP
.
.
.
PermitRootLogin no #不允許直接使用root進入(先透過一般使用者進入後下su)


Add

IgnoreUserKnownHosts no
PasswordAuthentication yes #使用密碼驗証


/etc/init.d/ssh restart

沒有留言: