LoginSignup
6
3

More than 5 years have passed since last update.

SSHでLAN内からのパスワードログインを許可する

Last updated at Posted at 2018-08-29

OpenSSHサーバーでパスワードログインを禁止していて、LAN内からに限りパスワードログインを許可する方法です。

・Fedora 28 Server
・OpenSSH 7.7

エディタでsshd_configを開く

sudo nano /etc/ssh/sshd_config

Matchディレクティブを使ってローカルネットワークを指定し、パスワードログインを許可する。sshd_configに下記を追加。

sshd_config
Match Address 192.168.1.0/24
    PasswordAuthentication yes

OpenSSHサーバーを再起動する。

sudo systemctl restart sshd
6
3
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
6
3