FreeBSDへsshで接続する

2024年3月13日水曜日

FreeBSD

t f B! P L

FreeBSDへsshで接続する

WindowsよりFreeBSDにsshで接続したい。

バージョン

14.0-RELEASE
Windows 11 23H2 (22631.3235)

/etc/rc.confの編集

/etc/rc.confを開き以下の設定を追加・変更
sshd_enable="YES"
→ 既に設定されていた。

/etc/ssh/sshd_configの編集

/etc/ssh/sshd_configを開き以下の設定を追加・変更
Port xxxxx
PasswordAuthentication yes
PermitRootLogin no
PermitEmptyPasswords no
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

QooQ