<div dir="ltr">Ok nevermind, of course after I finally ask the question I figure it out.<div><br></div><div>I found some really specific instructions on how to setup the keys and it's working on my system now. FYI you have to follow these instructions here: <a href="http://www.erlang.org/doc/apps/ssh/using_ssh.html#id60714">http://www.erlang.org/doc/apps/ssh/using_ssh.html#id60714</a> Before moving onto anything else in the document.</div><div><br></div><div>Thanks,</div><div>Tony</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 23, 2015 at 6:41 PM Anthony Esposito <<a href="mailto:tony.m.esposito@gmail.com">tony.m.esposito@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I'm trying to setup a simple Erlang SFTP server based on the documentation example from here: <a href="http://www.erlang.org/doc/apps/ssh/using_ssh.html#id59641" target="_blank">http://www.erlang.org/doc/apps/ssh/using_ssh.html#id59641</a></div><div><br></div><div>I'm struggling with it as my ssh client will only report "no hostkey alg" no matter how I configure the server. I've setup some public keys in a /tmp/ssh folder and tried the following code:</div><div><br></div><div><div>ssh:start().</div><div>ssh:daemon(8989, [{system_dir, "/tmp/ssh"},<br></div><div>{user_dir, "/tmp/ssh"},</div><div>{subsystems, [ssh_sftpd:subsystem_spec([{cwd, "/tmp/ssh"}])</div><div>]}]).</div></div><div><br></div><div>I've both placed the keys in a .ssh folder and in the primary folder. I've experimented with different permissions and filenames but I'm not sure what the actual issue is.</div><div><br></div><div>I've also tried forcing an algorithm with my client.</div><div><br></div><div>sftp -oPort=8989 -o IdentityFile=/tmp/ssh/host_key -o 'HostKeyAlgorithms ssh-rsa,ssh-dss' localhost<br></div><div><br></div><div>I'm trying to do this in userspace.</div><div><br></div><div>If anyone has already figured this out I'd appreciate some tips to get me past this.</div><div><br></div><div>Thank you,</div><div>Tony</div></div><div dir="ltr">-- <br></div><div dir="ltr"><div><span style="font-size:13.1999998092651px">==========</span><span style="font-size:13.1999998092651px">==========</span><span style="font-size:13.1999998092651px">==========</span><span style="font-size:13.1999998092651px">==========</span></div><div><span style="font-size:13.1999998092651px">Anthony Esposito</span><br></div><div><div><div>github/twitter: tesp0</div></div></div></div></blockquote></div><div dir="ltr">-- <br></div><div dir="ltr"><div><span style="font-size:13.1999998092651px">==========</span><span style="font-size:13.1999998092651px">==========</span><span style="font-size:13.1999998092651px">==========</span><span style="font-size:13.1999998092651px">==========</span></div><div><span style="font-size:13.1999998092651px">Anthony Esposito</span><br></div><div><div><div>github/twitter: tesp0</div></div></div></div>