- 論壇徽章:
- 0
|
如何不用每次都輸入密碼自動運行
我是看這里的how-to:
http://killyridols.net/rsyncssh.shtml
自己試了好幾次總是提示輸入密碼,
使用命令:
rsync -avr -e ssh anyone@backuphost:~/test/*.test $HOME/test
如果把服務器端的sshd_config中
PasswordAuthentication 設定為no
在執(zhí)行命令后會提示Permission denied (publickey,gssapi-with-mic)
但是我想要使用公開key,不用每次都輸入密碼,利用cron讓系統(tǒng)自動聯(lián)接遠程服務器
不知道誰能幫助我一下,
到底該注意哪些設定?
服務器端sshd_config的設定:
AuthorizedKeysFile .ssh/authorized_keys
客戶端ssh_config的設定
Compression yes
Protocol 2
RSAAuthentication yes
StrictHostKeyChecking no
ForwardAgent yes
ForwardX11 yes
IdentityFile ~/.ssh/id_dsa
IdentityFile ~/.ssh/identity
IdentityFile ~/.ssh/id_rsa |
|