0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SSH root login 禁止設定

Last updated at Posted at 2017-02-25

#SSH root login 禁止設定
VPSを借りたついでに備忘録程度にSSH root login禁止設定について書いておく。

環境:CentOS 7

##新しいユーザを作る

# useradd [username]
# passwd [username]

一旦ログアウトする。

##新しいユーザから設定

$ su -
# vim /etc/ssh/sshd_config
PermitRootLogin no

に変更する。

0
0
2

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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?