Accessing SFTP over "Connect to Server..." asks for password 3 times after connection and when changing directories

Bug #799072 reported by Beetroot Dog
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
bzr-gtk (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: nautilus

When connecting to a server using "Connect to Server..." in Nautilus, you are first prompted for a password ("Enter password for SSH as <username> on <servername/IP>") with three options: Forget password immediately/Remember password until you logout/Remember forever.

Having correctly entered the password, you are prompted again for the password 3 times in a simpler prompt ("<username>@<server>'s password:"). However, it doesn't matter what you type in here, it will still enable you to login. Also, once logged in, every time you change directories you are asked for the password 3 times but you can type anything or simply press Esc 3 times and you get to change directories. Not only is this annoying when navigating directories, it is a bit disturbing that a password prompt appears that doesn't care what you enter.

Note that the options for remembering the password in the first password prompt does not have any bearing on the issue: it happens regardless of which one you choose.

The issue also occurs when you connect through Alt-F2 and type in sftp://<username>@<server> .
However, the issue does not occur when connecting through Dolphin or Konqueror.

Confirmed when connecting to servers running openssh on Ubuntu Server Editions 10.04 and 11.04.

I have enabled "LogLevel DEBUG" in /etc/ssh/sshd_config and attached the output in /var/log/auth.log for connecting using Nautilus and also through KDE's Dolphin. Based on this, at face it appears that when connecting through Nautilus, sshd accepts the initial credentials, then invokes the sftp subsystem. At this point, it seems Nautilus does not supply credentials whereas Dolphin does. Although since a valid password does not even need to be entered, it would seem that sshd's initial acceptance of the credentials overrides what the sftp subsystem requested.

Connecting client release: Ubuntu 11.04 (Desktop 32bit)
Issue relates to: /usr/bin/nautilus-connect-server
Nautilus version: 1:2.32.2.1-0ubuntu13

Revision history for this message
Beetroot Dog (beetrootdog) wrote :
description: updated
Revision history for this message
Beetroot Dog (beetrootdog) wrote :

Just found that someone else has reported this as Bug #540280. I will mark this as a duplicate.

Having removed nautilus-bzr, the problem goes away. I am attaching another sshd debug log from auth.log of connecting using "Connect to server..." with nautilus-bzr removed. Once it is removed, and an sftp connection made through nautilus, the logging from sshd show some differences.

Revision history for this message
Beetroot Dog (beetrootdog) wrote :

nautilus-bzr 0.100.0-2ubuntu2

affects: nautilus (Ubuntu) → bzr-gtk (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bzr-gtk (Ubuntu):
status: New → Confirmed
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.