2010年12月15日水曜日

Debian 5.0.7 ssh 設定

//ssh 安裝方法
System -> Administration -> Syanaptic Package Manager
Search "ssh"
Mark for Installation "ssh"

vim /etc/ssh/sshd_config
Port 22 //改一下想要的 port 比較安全
PermitRootLogin no //禁止 root 登入

vim /etc/hosts.allow
sshd:192.168.0.0 //設定允許 ssh 連線的 ip

vim /etc/hosts.deny
sshd:all //設定不允許所有連線(不過 allow 裡的例外)

/etc/init.d/ssh restart //重新啟動
目前是使用這套 ssh 連線軟體(不過它也很久沒更新)
http://www.chiark.greenend.org.uk/~sgtatham/putty/

0 件のコメント: