7

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?

  • would you not want to connect directly from the Terminal? e.g. ssh [user]@[host] – Broadsworde May 10 '18 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 '18 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/…! – Broadsworde May 11 '18 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 '18 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 '18 at 11:12
3

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
    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 '18 at 16:46
3

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

  • 2
    It's like Captain Nemo takes control over Nautilus :) – WinEunuuchs2Unix Aug 19 '18 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 '18 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 '18 at 7:18
0

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

sftp://daniel@secrethost.com/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://daniel@secrethost.com/Users/daniel

I'm not into samba.

protected by Community Mar 2 at 6:53

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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