Comment 2 for bug 1275701

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote : Re: connecting to remote host with ssh freezes when unexpected warning [$15]

Such things should be resolved manually, and people using SSH and running into a potential MitM are assumed to know what they're doing. So I believe Files should just explain what happened and abort.

So we need make the SSH process not hang and, ideally, to get the error message from the SSH. Making it not hang should be easy: just set the "StrictHostKeyChecking" option to "yes" instead of "ask", and it will exit with an error message instead of prompting the user.
Setting the options can be done either via the "-o" command-line argument or via config files. I haven't seen anything based on environment variables but that should not be required.

But this makes me wonder - does Pantheon Files actually contain its very own SSH handling code?! Shouldn't it use GVFS or something along those lines?