編輯 /etc/pam.d/sshd 檔案,加入下面一行 儲存後重新開機sshd程序 編輯 /etc/security/access.conf 檔案 隻能通過 192.168.6.1 登陸, 添加多個ip位址 測試是否生效