Tag: ServersMan@VPS
# yum update
# more /etc/redhat-release CentOS release 5.6 (Final)
# adduser nakata
# passwd nakata
## Allow root to run any commands anywhere root ALL=(ALL) ALL nakata ALL=(ALL) ALL
nakata ALL=(ALL) NOPASSWD:ALL
# su nakata
$ cd /home/nakata $ mkdir .ssh $ chmod 700 .ssh $ vi .ssh/authorized_keys $ (公開鍵を貼り付け) $ chmod 600 .ssh/authorized_keys
$ sudo vi /etc/ssh/sshd_config
PasswordAuthentication no
PermitRootLogin no
$ sudo /etc/init.d/sshd restart