Skip to content

Instantly share code, notes, and snippets.

@PGMY
Created January 20, 2014 14:15
Show Gist options
  • Save PGMY/8520600 to your computer and use it in GitHub Desktop.
Save PGMY/8520600 to your computer and use it in GitHub Desktop.
Serversman@VPS 初期設定 ref: http://qiita.com/PGMY/items/c2eb0fb0c9df1dd12ff6
$ ssh -p [ポート番号] root@[IPアドレス]
The authenticity of host ******* can't be established.
RSA key fingerprint is ********.
Are you sure you want to continue connecting (yes/no)? yes
#
# useradd -G wheel [ユーザー名]
# passwd [パスワード]
ユーザー [ユーザー名] のパスワードを変更。
新しいパスワード:
新しいパスワードを再入力してください:
passwd: 全ての認証トークンが正しく更新できました
#
%wheel ALL=(ALL) ALL
# vi /etc/ssh/sshd_config
#PermitRootLogin yes
PermitRootLogin no
AllowUsers [ユーザー名]
# /etc/init.d/sshd restart
sshd を停止中: [ OK ]
sshd を起動中: [ OK ]
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment