2012年12月23日日曜日

さくらVPS SSH設定

rootになる
sudo -s

# cp /etc/ssh/sshd_config /etc/ssh/ssh_config.org
#vi /etc/ssh/sshd_config


# diff /etc/ssh/sshd_config /etc/ssh/ssh_config.org
13c13
< Port ### ⬅ポートを設定
---
> #Port 22
42c42
< PermitRootLogin no
---
> #PermitRootLogin yes
66c66
< PasswordAuthentication no
---
> PasswordAuthentication yes


0 件のコメント:

コメントを投稿