Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
efrpcabo
Posts: 108
Joined: 2013-08-08 06:36

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

#1 Post by efrpcabo »

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.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

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

#2 Post by debiman »

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
efrpcabo
Posts: 108
Joined: 2013-08-08 06:36

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

#3 Post by efrpcabo »

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

User avatar
efrpcabo
Posts: 108
Joined: 2013-08-08 06:36

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

#4 Post by efrpcabo »

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?

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

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

#5 Post by debiman »

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
efrpcabo
Posts: 108
Joined: 2013-08-08 06:36

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

#6 Post by efrpcabo »

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.

Post Reply