10

I happen to be working as a system admin, and I was so happy setting a shortcut key to nautilus-connect-server command, allowing me to bring up the "Connect to server" dialogue box with one function-key press.

Now, the shell command is not found, and when you click on the 18.04 LTS link top of this http://manpages.ubuntu.com/manpages/xenial/en/man1/nautilus-connect-server.1.html page, you are forcibly redirected to Xenial (16.04 LTS)!

Although Nautilus is keeping the functionality (in a limited form), but the command line is gone.

Any native and secure workaround/alternative?

5
  • would you not want to connect directly from the Terminal? e.g. ssh [user]@[host] May 10, 2018 at 7:29
  • 1
    @Broadsworde: no, I use it for file/folder browsing and copying, and it is very handy that way. Works all the way for all protocols, specially with SMB shares.
    – M K
    May 11, 2018 at 7:43
  • ssh is far more secure than smb, and you effectively become a user on the remote machine... browse, copy, delete, create as you like. But if SMB is your preferred method you can do so like this: help.ubuntu.com/community/…! May 11, 2018 at 8:04
  • @Broadsworde: What if all my sheep are of Satya's? :D No, I can't use SSH, I'm the lonely wolf here (escaped Satya's corrupted dreams of an OS more than a year ago). Also, smbclient is good for listing, not very useful for browsing; you need quick visual assessment of a user PC and that is not as quickly provided with smbclient. Nevertheless, I settled for the closest method, which I will accept as answer!
    – M K
    May 13, 2018 at 11:02
  • @Broadsworde: One more thing about smbclient, it works inside a terminal. You cannot just as simply copy/paste in a terminal. And you wouldn't handle mounting/unmounting smb shares for each user you have on the network just for the sake of some copy/paste! Overkill! I would rather die than to do it on daily basis and for each and every one of them. Scripting it, too, would be too much of a waste.
    – M K
    May 13, 2018 at 11:12

3 Answers 3

5

An easy way to connect to server is to install nemo. Nemo is very similar to Nautilus and allows you to explore your files and connect to server. You can install nemo with the common apt:

sudo apt install nemo

Then, you can go to menu file, Connect to Server and then you will see this:

Nemo Connect to Server Interface

Nautilus: If you still want to connect using nautilus, you can normally do it. When connecting to a server in Nemo, it automatically appears in Nautilus. enter image description here

Nemo also allows you to add bookmarks to your server connections with the name you desire (in this case MyBookmark). Then, the next time you want to connect you can simply select the bookmark. If you create it in nemo it automatically appears in nautilus as well. enter image description here

3
  • 3
    It's like Captain Nemo takes control over Nautilus :) Aug 19, 2018 at 17:49
  • @Sheila. Is this perhaps because Nemo is using sshfs under the hood? Is this perhaps a good alternative to nautilus ssh://user@host:port/dir?
    – Adriaan
    Sep 13, 2018 at 16:48
  • @Sheila Although I already use nemo (even on KDE) and that nemo's approach to address bar is way better than nautilus, but your answer missed the original target of my question: I connect to SMB servers, not *nix ones.
    – M K
    Oct 2, 2018 at 7:18
4

No hope here, the closest thing is use CTRL+L in Nautilus and type down the target URI (like smb://PC/share). That is the closest experience there is to get!

1
  • 1
    I don't think this works. When I try Ctrl+L and enter ssh://user@host:port/dir I get the message Oops! Something went wrong. Unhandled error message: Connection failed..
    – Adriaan
    Sep 13, 2018 at 16:46
1

To connect remotely to macOS I hit ctrl-L in nautilus and enter:

sftp://[email protected]/Users/daniel

At this point one can right-click and create a bookmark out of the location.


To open Nautilus at this location directly from the terminal:

$ nautilus sftp://[email protected]/Users/daniel

I'm not into samba.

1
  • works like a charm
    – matanox
    Sep 9, 2019 at 16:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .