助教好,我已在 router 與 CP1 都建立 judge 使用者,並加入 OJ public key
router 的 sshd 監聽 0.0.0.0:22,sshd -T 顯示 pubkeyauthentication yes,authorizedkeysfile 正常。/home/judge/.ssh/authorized_keys 權限也已確認正確。
但我提交 OJ 時在 router 上監看:
sudo tcpdump -ni any 'tcp port 22 and not host 192.168.200.250'
結果是 0 packets captured。journalctl -u ssh 也沒有 judge / Failed publickey / Invalid user 紀錄。