在运行Linux服务器的CentOS 6.4上,我试图用strato hidrive( http://www.strato-hosting.co.uk/online-storage-hidrive/advanced/ )来rsync文件夹。 服务器正在运行rsync版本3.0.9。
我所做的设置rsync到hidrive:
ssh-keygen -f /root/.ssh/id_rsa -t rsa -N '' /opt/rsync/bin/rsync -av -e 'ssh' --rsh="ssh -p22" /home/user/example/ [email protected]:/users/mystratousername/我已经做了一个testing,看看它是否能正常工作/opt/rsync/bin/rsync -av -e 'ssh' --rsh="ssh -p22" /home/user/example/ [email protected]:/users/mystratousername/ 通常它只是rsync,但现在它要求input密码(虽然我没有使用密码)。 我确实有另外5台机器在工作,但我在半年前就设置好了。
问题在于id_rsa.pub的密钥长度,显然这个密钥的默认位长度与默认的2048不同(比如在其他服务器上),所以当我使用-b 2048重新生成密钥时,它确实为我工作。 请注意,这可能只是因为strato hidrive的要求。