SSH安全遠端管理服務...為完成

SSHD驗證方式分為三類:

SSH簡單設置安全政策

#vim /etc/ssh/sshd_config(另外,在/etc/ssh/內有ssh_config,表客戶端的設定檔)
#vim /etc/ssh/sshd_config

Port 22   #ssh 通常是22port,可以改變1024~65535port
PermitRootLogin yes  #預設為yes改變為no,不允許root登入
PasswordAuthentication yes #預設為yes改變為no,不用主機驗證方式,改採憑證認證方式(憑證認證方式,可以用ssh-copy-id,把公鑰傳到伺服端)
AllowUsers user1,user2...  #此作法為白名單方式,只允許user1,user2等帳號登入驗證