0
我可以在提示中使用sftp
将文件从一台服务器传输到另一台服务器。“sftp:command not found”从Unix Shell脚本运行sftp
我尝试使用shell脚本sftp
,我得到以下错误:
"sftp: command not found"
我试图从脚本下面的代码:
sftp ${USER}@${HOST} <<EOF
quote pass ${PASSWD}
cd ${PATH}
mput *.csv
EOF
谁能帮助我?
嘿感谢了很多。它的工作原理.. :)它要求在prompt..How密码我避免这种情况? – Suvasis 2013-03-28 07:23:26
您需要设置公钥认证。 [http://superuser.com/questions/15984/how-do-i-automate-sftp-to-get-rid-of-the-password-prompt]http://superuser.com/questions/15984/how -DO-I-自动化-SFTP到获得-RID的最-密码提示 – 2013-03-28 08:57:59