資料來源:預防老人癡呆的安裝筆記
http://mypaper.pchome.com.tw/ninja_01/post/1320068199
確認啟動 SSH 服務
netstat -tlp
編輯SSH設定檔
vi /etc/ssh/sshd_config
修改項目
PermitRootLogin no (是否允許 root 登入)
PasswordAuthentication yes (是否需要密碼驗證)
PermitEmptyPasswords no (是否允許空密碼登入)
ChallengeResponseAuthentication no (允許任何的密碼認證)
UsePAM yes (利用 PAM 管理使用者)
設定允許連線IP
vi /etc/hosts.allow
sshd: ip, ip
設定不允許連線IP
vi /etc/hosts.deny
sshd : ALL
最後重新啟動
service sshd restart
細部設定
http://linux.vbird.org/linux_server/0310telnetssh.php
編輯SSH設定檔
vi /etc/ssh/sshd_config
修改項目
PermitRootLogin no (是否允許 root 登入)
PasswordAuthentication yes (是否需要密碼驗證)
PermitEmptyPasswords no (是否允許空密碼登入)
ChallengeResponseAuthentication no (允許任何的密碼認證)
UsePAM yes (利用 PAM 管理使用者)
設定允許連線IP
vi /etc/hosts.allow
sshd: ip, ip
設定不允許連線IP
vi /etc/hosts.deny
sshd : ALL
最後重新啟動
service sshd restart
細部設定
http://linux.vbird.org/linux_server/0310telnetssh.php
沒有留言:
張貼留言