<div dir="ltr">Hi all<div><br></div><div>Made some progress towards using sftpd and sftp but hitting this problem: I can read and write (get and put) files using erlang sftp library, but can only read (get) files from the erlang sftpd daemon if i do this with some other sftp software (i tried filezilla and the standard sftp cli that comes on mac osx). If i try to put file, i get this:</div>
<div><br></div><div>sftp> put /tmp/erlang/test3.txt</div><div>Uploading /tmp/erlang/test3.txt to /test3.txt</div><div>remote open("/test3.txt"): Failure</div><div><br></div><div style>directory permissions should be fine since i can still upload files using erlang sftp lib </div>
<div><br></div><div>the code is shared here for anyone who would like to take a look: </div><div><a href="https://github.com/ababkin/hl7_pipeline">https://github.com/ababkin/hl7_pipeline</a></div><div><br></div><div><br></div>
<div style>Cheers</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 21, 2012 at 3:51 PM, JD Bothma <span dir="ltr"><<a href="mailto:jbothma@gmail.com" target="_blank">jbothma@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You probably also already found these, but they're handy for reference<div><br></div><div><a href="https://github.com/erlang/otp/blob/maint/lib/ssh/src/ssh_sftpd_file.erl" target="_blank">https://github.com/erlang/otp/blob/maint/lib/ssh/src/ssh_sftpd_file.erl</a><br>
</div><div><a href="https://github.com/erlang/otp/blob/maint/lib/ssh/src/ssh_sftpd_file_api.erl" target="_blank">https://github.com/erlang/otp/blob/maint/lib/ssh/src/ssh_sftpd_file_api.erl</a><br></div></div><div class="gmail_extra">
<br>
<br><div class="gmail_quote"><div><div class="h5">On 21 December 2012 18:03, Alex Babkin <span dir="ltr"><<a href="mailto:ababkin@gmail.com" target="_blank">ababkin@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
<div dir="ltr"><div class="gmail_extra">Thanks Alexander, this was very helpful</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 21, 2012 at 12:28 AM, Alexander Zhuravlev <span dir="ltr"><<a href="mailto:a.zhuravlev@gmail.com" target="_blank">a.zhuravlev@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ssh_sftpd</blockquote></div><br></div></div>
<br></div></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>