17

How do I connect to my remote sftp account using ubuntu's "Connect to Server" option? When I have the "Connect to Server" dialog box on my screen, the "Service type" only shows:

FTP (with login)
Public FTP

Those are the only FTP options I can see in the dropdown. No SFTP option?

26

The easiest way to connect to an SFTP server with Ubuntu is with the sftp:// scheme of the file managers with GVFS support (Nautilus, Nemo, Thunar) or KIO support (Dolphin, Konqueror):

  1. Open a file manager window.

  2. Show or focus the address bar e. g. with Ctrl+L.

    (If this doesn't work your file manager may have an equivalent, alternative menu entry called “Go to…” or “Connect to…”. Some window manager require you to press Alt to show the menu bar.)

  3. Enter the server address into the address bar:

    sftp://example.org[:port]/
    

    You can even supply username, password, and a path in the address:

    sftp://[user[:password]@]example.org[:port]/[path/to/directory/]
    

    If you don't and the SFTP account requires a password, a password dialogue will pop up.

  • You can do this for FTPS too btw (ftps://example.com). Interestingly, even though this works, the "connect to server" dialog does not offer FTPS as an option. And im wondering if that is what the OP is actually asking about (since people often confuse SFTP as FTPS). – dhaupin Oct 28 '16 at 18:53
8

Do you see an SSH option in the dropdown? That is effectively the SFTP option, you should see it listed as such on the left pane once it connects.

Or you can skip the File → Connect to Server… sequence altogether and instead do Go → Location (or Ctrl+L) and then typing sftp://user@host/initial/dir in the address bar.

0

Ubuntu doesn't have ssh installed by default, so you have to install ssh on Ubuntu in order to connect to a remote SFTP account.

sudo apt install ssh

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.