connecting to remote host with ssh freezes when unexpected warning [$50]

Bug #1275701 reported by thomas parquier
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Files
Expired
Undecided
Unassigned

Bug Description

Files does not forward warning to user when ssh connection is blocked by a prompt, such as :

Warning: the ECDSA host key for 'vm.local' differs from the key for the IP address 'XX.XX.XX.XX'
Offending key for IP in /home/tom/.ssh/known_hosts:13
Are you sure you want to continue connecting (yes/no)?

Tags: bounty remote ssh
Cody Garver (codygarver)
Changed in pantheon-files:
importance: Undecided → Medium
milestone: none → isis-beta1
status: New → Confirmed
Revision history for this message
Cody Garver (codygarver) wrote : Re: connecting to remote host with ssh freezes when unexpected warning [$15]
tags: added: bounty
summary: - connecting to remote host with ssh freezes when unexpected warning
+ connecting to remote host with ssh freezes when unexpected warning [$15]
Changed in pantheon-files:
assignee: nobody → KJ Lawrence (kjtehprogrammer)
status: Confirmed → In Progress
Cody Garver (codygarver)
Changed in pantheon-files:
assignee: KJ Lawrence (kjtehprogrammer) → nobody
status: In Progress → Confirmed
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

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?

Cody Garver (codygarver)
Changed in pantheon-files:
milestone: isis-beta1 → isis-beta2
Niclas Lockner (niclasl)
Changed in pantheon-files:
assignee: nobody → Niclas Lockner (niclasl)
Niclas Lockner (niclasl)
Changed in pantheon-files:
status: Confirmed → In Progress
Cody Garver (codygarver)
Changed in pantheon-files:
milestone: freya-beta2 → none
Niclas Lockner (niclasl)
Changed in pantheon-files:
status: In Progress → Confirmed
assignee: Niclas Lockner (niclasl) → nobody
Cody Garver (codygarver)
summary: - connecting to remote host with ssh freezes when unexpected warning [$15]
+ connecting to remote host with ssh freezes when unexpected warning [$50]
Revision history for this message
The Lemon Man (lemonboy) wrote :
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

Confirmation is required as to whether this is still an issue in the latest version of Files (0.3.2).

Changed in pantheon-files:
status: Confirmed → Incomplete
importance: Medium → Undecided
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Files because there has been no activity for 60 days.]

Changed in pantheon-files:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.