<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">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>