LoginSignup
0
1

More than 5 years have passed since last update.

ConoHaのVPSを初期設定。sshログイン後ユーザ作成、rootログイン禁止、port変更まで

Last updated at Posted at 2018-08-26

さて、もう下記の通り。特に新しいことはございません。

ConohaにVPSを設置して、SSHログイン、ポート番号変更、rootログイン禁止までを30分で!

ただ、上記記事中の以下の部分だけちょっと変更。

SSH接続の準備部分

RSAAuthenticationがsshd_configになかった。
いったんなしでやることにする。

RSAAuthentication yes

PubkeyAuthentication yes

AuthorizedKeysFile      .ssh/authorized_keys
$ sudo service sshd restart

ssh ポート番号変更部分

iptablesの設定も省く。必要ないみたい。
firewalldの設定が必要。

参考↓
ConoHaのVPS(CentOS7.4)にSSH接続する手順

ということで、設定終了したからイメージを保存しておく。これで今後再構築しても設定は必要なくなる。。。!

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1