tag:help.appveyor.com,2012-11-13:/discussions/problems/23093-sftp-with-key-authentication-on-linux-imageAppVeyor: Discussion 2019-04-19T06:03:43Ztag:help.appveyor.com,2012-11-13:Comment/471879032019-04-18T11:41:33Z2019-04-18T11:41:34Zsftp with key authentication on linux image<div><p>I currently have this solved by running the following:<br></p>
<pre>
<code> deploy_script:
- lftp -e 'set sftp:connect-program "ssh -a -x -i sshkey";set cmd:trace yes;set cmd:verbose yes;mkdir -f /home/user/deploy;put -O /home/user/deploy /home/appveyor/projects/project.jar;put -O /home/ec2-user/deploy /home/appveyor/projects/project.yml;bye' -u user,xxx sftp://host</code>
</pre>
<p>This means risking breaking changes by not using the default deploy provider though.</p></div>Christoffer