Remote files editing: gigolo, sshfs ou remote X text editor?

If none of the more specific forums is the right place to ask

Remote files editing: gigolo, sshfs ou remote X text editor?

Postby efrpcabo » 2017-10-22 00:10

Hi,

I would like to listen to some different ideas about editing remote files.

I'm talking about editing files on remote servers, like virtualhosts or config files in /etc or files in /var/www/mydomain.

I use gigolo + thunar and I'm somewhat satisfied, but sometimes I open 6 or more thunar windows and it becomes a litle sluggish sometimes but not always.
Also, I notice that the remote mounts appear automatically on Thunar, but not on Spacefm.

I also noticed that opening locally a remote file with Gedit works, but not with Geany nor with Mousepad.


I've tried today sshfs, but it froze completely my system two times and I had to restart it.
I tried it with this two options and both froze:
sshfs -o allow_other,default_permissions root@towersforum.pt:/ /mnt/cloud/towersforum.pt
sshfs root@xxx.xxx.xxx.xxx:/ /mnt/droplet
But if someone uses this successfully, please tell me how you do it.


I've tried with remote X and Y in the past and it worked.
But I remember reading somewhere that it's unsecure running remote X or Y on a server and don't want to run any risks.
However, if anyone knows a secure way to do this, I would like to hear.

So, I would like to hear multiple solutions by multiple people.
What you use daily and which works.

Please state your opinion.
efrpcabo
 
Posts: 30
Joined: 2013-08-08 06:36

Re: Remote files editing: gigolo, sshfs ou remote X text edi

Postby debiman » 2017-10-22 06:37

tl;dr
i've been using sshfs for a long time.
recently i switched to nfs for my local network, but still sshfs for remote connections.

i'd never ever install X (or any gui for that matter) on my own server.
User avatar
debiman
 
Posts: 1528
Joined: 2013-03-12 07:18

Re: Remote files editing: gigolo, sshfs ou remote X text edi

Postby efrpcabo » 2017-10-22 07:37

debiman wrote:tl;dr

What does that mean?


debiman wrote:tl;dr
i've been using sshfs for a long time.

Does it sometimes freezes your system?

Do you use this commands? :
sshfs -o allow_other,default_permissions root@towersforum.pt:/ /mnt/cloud/towersforum.pt
sshfs root@xxx.xxx.xxx.xxx:/ /mnt/droplet
efrpcabo
 
Posts: 30
Joined: 2013-08-08 06:36

Re: Remote files editing: gigolo, sshfs ou remote X text edi

Postby efrpcabo » 2017-10-22 08:33

Another doubt:
I know that many people don't like forwarding X in servers for security reasons.

But isn't that related with desktop environments only?

What I mean is, would it be also insecure to install and forward, for example, a simple text editor like Geany or even a filemanager like thunar, in the server?
Or in this case it would be safe?
efrpcabo
 
Posts: 30
Joined: 2013-08-08 06:36

Re: Remote files editing: gigolo, sshfs ou remote X text edi

Postby debiman » 2017-10-24 13:57

i have completely disallowed remote root login, and i recommend everybody to do the same.
i have also completely disabled password login, and use only ssh keys, and an ssh key agent.
(i think the freeze could have to do with ssh expecting a password but sshfs not providing any means to read it)

my opinion about Xorg on a server is still the same, so i cannot say anything more about it.
User avatar
debiman
 
Posts: 1528
Joined: 2013-03-12 07:18

Re: Remote files editing: gigolo, sshfs ou remote X text edi

Postby efrpcabo » 2017-11-04 22:52

Thanks debiman!

I would like to hear more opinions.

I understand that this should not me applied in production servers, but for practicing, just for fun or sharing with friends, I would like to play with this some more.
efrpcabo
 
Posts: 30
Joined: 2013-08-08 06:36


Return to General Questions

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable