Public bug reported: 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: ** Affects: nautilus (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug focal -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to nautilus in Ubuntu. https://bugs.launchpad.net/bugs/1896389 Title: Problem with Nautilus and Port 22 when a different port is configured Status in nautilus package in Ubuntu: New 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: To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1896389/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp