Created
January 20, 2014 14:15
-
-
Save PGMY/8520600 to your computer and use it in GitHub Desktop.
Serversman@VPS 初期設定 ref: http://qiita.com/PGMY/items/c2eb0fb0c9df1dd12ff6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# useradd -G wheel [ユーザー名] | |
# passwd [パスワード] | |
ユーザー [ユーザー名] のパスワードを変更。 | |
新しいパスワード: | |
新しいパスワードを再入力してください: | |
passwd: 全ての認証トークンが正しく更新できました | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# visudo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%wheel ALL=(ALL) ALL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vi /etc/ssh/sshd_config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#PermitRootLogin yes | |
PermitRootLogin no | |
AllowUsers [ユーザー名] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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