Problem with Nautilus and Port 22 when a different port is configured

Bug #1896389 reported by Volker Wysk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
New
Low
Unassigned

Bug Description

I've configured my ssh client(s) to use a port different from 22, in order to avoid the large number of break-in attempts on the standard port 22. That's the "Port" setting in /etc/ssh/ssh_config. I've also configured my ssh servers (different machines) to use that port. That's also "Port", in /etc/ssh/sshd_config. This works fine.

But now I'm trying to use nautilus to connect via sftp to my website, using the address:

sftp://username@provider:22/path/to/www/data

The port 22, which is to be used, is provided. The configured new default port is overridden by it. This works for the sftp command:

sftp sftp://username@provider:22/path/to/www/data

But it doesn't work with nautilus. I get this message (translated back from German to English):

"The server has refused the connection. This usually is because of a firewall denies access or the remote service isn't running."

But when I change the default port in /etc/ssh/ssh_config back to 22, it works!

It looks like nautilus fails to regard the port, which is provided in the URL (see above).

Ubuntu version: 20.04.1 LTS
Nautilus version: 1:3.36.3-0ubuntu1

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: nautilus 1:3.36.3-0ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-47.51-generic 5.4.55
Uname: Linux 5.4.0-47-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.8
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Sun Sep 20 17:52:29 2020
InstallationDate: Installed on 2020-08-03 (48 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: nautilus
UpgradeStatus: No upgrade log present (probably fresh install)
usr_lib_nautilus:

Revision history for this message
Volker Wysk (dost) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, could you report the issue upstream directly on https://gitlab.gnome.org/GNOME/nautilus/-/issues ?

Changed in nautilus (Ubuntu):
importance: Undecided → Low
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.