AllowedAuthentications publickey,password
說明:允許 Public Key Authentication,如果沒有對應的 Key,以密碼進行登入驗證。
IdentityFile identification (預設)
說明:登入遠端時,如果以 Public Key Authentication,要用哪一把 Private Key 與對方進行身分驗證。
位置: $HOME/.ssh2/identification
格式:
IdKey local-privatekey-filename
AuthorizationFile authorization (預設)
說明:遠端使用者以 SSH 登入本電腦時,如果允許 Public Key Authentication,則需要讀取哪些 Public Key 進行身分檢查。
位置: $HOME/.ssh2/authorization
格式:
Key remote-pubkey-filename1
Key remote-pubkey-filename2
Key remote-pubkey-filename2
ssh-keygen2:
產生Private Key 與 Public Key
ssh-pubkeymgr:
可自動產生自己的 Private Key 與 Public Key ( 如果之前沒有產生的話 ),並將自己的 Public Key 以 scp 方式送至遠端主機 (僅傳送,遠端 authorization 檔案仍需另外修改)
Posted by 椰子殼
