this post was submitted on 15 Jan 2024
17 points (94.7% liked)
linux4noobs
1326 readers
1 users here now
linux4noobs
Noob Friendly, Expert Enabling
Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.
Seeking Support?
- Mention your Linux distro and relevant system details.
- Describe what you've tried so far.
- Share your solution even if you found it yourself.
- Do not delete your post. This allows other people to see possible solutions if they have a similar problem.
- Properly format any scripts, code, logs, or error messages.
- Be mindful to omit any sensitive information such as usernames, passwords, IP addresses, etc.
Community Rules
- Keep discussions respectful and amiable. This community is a space where individuals may freely inquire, exchange thoughts, express viewpoints, and extend help without encountering belittlement. We were all a noob at one point. Differing opinions and ideas is a normal part of discourse, but it must remain civil. Offenders will be warned and/or removed.
- Posts must be Linux oriented
- Spam or affiliate links will not be tolerated.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
What about using sshfs? Mount the remote directory on your local filesystem and then edit locally.
Do you mean sftp?
I just played around with it. My file manager is Nemo (I am using Linux Mint) which allows you to connect to another computer using sftp and being able to browser the files and directories on that machine and be able to open text files.
Not the way I would prefer to do it, but a workable solution.
However I would also like to edit files on the machine with sudo privelages. I cannot connect to the machine as a normal user and right click in Nemo and open the file manager as root, as it will just open the sftp file manager as root on my device, not the remote device.
I did find this as a solution but it makes my remote machine unsecure by connecting to the remote machine as the root user by enabling the root user on the remote machine. However rather use sudo than enable the root user.
https://askubuntu.com/questions/400858/how-to-configure-sftp-to-login-in-the-directory
Nope, I mean sshfs https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh
If you are doing this as root, I have to question what it is you're up to. The only time you should be editing files as root is config files, and then vim or nano should meet your needs.
Yes I only want to use root to edit config files. However I hate using nano and vim since they are TUI. I would like to use a GUI when editing config files.
I did find a TUI text editor that I like that is better than nano.
Micro https://micro-editor.github.io/