linux:open_ssh:server

文書の過去の版を表示しています。


ssh サーバーの設定

以下のファイルの内容を編集する。

/etc/ssh/sshd_config
#Port 22
Port 22022
#PermitRootLogin yes
PermitRootLogin no
#PasswordAuthentication yes
PasswordAuthentication no

sshd サービスを再起動する。

$ sudo service sshd restart
sshd を停止中:                                             [  OK  ]
sshd を起動中:                                             [  OK  ]

CentOS の場合

$ sudo vi /etc/sysconfig/iptables 
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22022 -j ACCEPT
  • linux/open_ssh/server.1378191878.txt.gz
  • 最終更新: 2019/05/18 02:23
  • (外部編集)