aptitude install ssh
/etc/hosts.allow に接続を許可するIPを記述sshd:192.168.sshd:127.0.0.1
ssh rootでのログイン禁止 & ログインできるユーザを限定/etc/ssh/sshd_configPermitRootLogin noAllowUsers ユーザ名su - でrootになれるユーザを限定/etc/groupwheel:x:10:root,ユーザ名/etc/pam.d/suauth required /lib/security/pam_wheel.so group=wheelsshd再起動/etc/init.d/sshd restart