[SOLVED] Adding remote folders (ssh) to Thunar side pane

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Dint

[SOLVED] Adding remote folders (ssh) to Thunar side pane

Post by Dint »

I'm trying to connect to my university's network and to add some remote folders to my side pane in Thunar. I've done this before in Ubuntu and there it was just a matter of selecting 'Connect to Server' in the file manager, adding sftp://1234567@myuni.com and that was it. However, this 'Connect to Server' option is not present in Thunar and I've read that Gigolo is usually recommended in this situation. Unfortunately, this is where I run into a problem as I'm unable to connect to my university's server through Gigolo.

My guess is that the problem is related to the fact that I had to generate a keypair (while on location at the university) and send this to my own device. This allowed me to connect to my university's server by simply typing ssh myuni in the terminal, after which I have to enter my password and I'm in.

The steps I took at university are as follows:
  1. ssh-keygen -t rsa to generate a keypair, after this I had to pick a filename, e.g. mykeyfile
  2. cat ~/.ssh/mykeyfile.pub | ssh s1234567@myuni.com 'cat >> /var/lws/ssh/s1234567/authorized_keys' to configure the public key
  3. mkdir ~/Documents/Keys/ && cp ~/.ssh/mykeyfile* ~/Documents/Keys/ to copy the two files (mykeyfile and mykeyfile.pub) to my Documents folder
After this I copied those two folders to my own device and took the following steps:
  1. mv Downloads/mykeyfile* ~/.ssh/ to move both files to the right folder
  2. chmod 600 ~/.ssh/mykeyfile && chmod 644 ~/.ssh/mykeyfile.pub to give them the right permissions
  3. nano ~/.ssh/config to add the following:

    Code: Select all

    Host myuni
        HostName myuni.com
        User s1234567
        IdentityFile ~/.ssh/myuni
After taking those steps I could connect to my university's server, by typing ssh myuni in the terminal. Now the problem I think I'm having in Gigolo, is that I can't refer to that IndentityFile anywhere. Does anyone know how I can get this to work so I can add it to my side pane in Thunar?

I'm using Linux Mint 19.1 Tessa (64 bits) with Xfce 4.12.3.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Adding remote folders (ssh) to Thunar side pane

Post by rene »

You should do away with Gigolo again. If you can from the Xfce machine connect with simply "ssh user@host" then you can in Thunar's address bar type "sftp://user@host/home/user" and find yourself looking at /home/user/ on host. Right-click the entry which will have appeared under "Network" in the lefthand sidebar, and chose to create a shortcut to have it available simply by clicking; rightclicking the shortcut lets you rename it.
Dint

Re: Adding remote folders (ssh) to Thunar side pane

Post by Dint »

I tried connecting to sftp://user@myuni.com/home/user before, but it kept giving me a 'Permission Denied' message. I just tried sftp://user@myuni/home/user instead and it worked (also without the /home/user part)! Thank you, rene! And goodbye, gigolo! :D
Locked

Return to “Networking”