Open a nautilus file browser window and select "connect to server" from the menu in the top panel.
Enter in the server info (use ssh:// or sftp:// for ssh connections).
For Ex:
ssh://username@remotemachine.com
Click on connect.
Once connected you can bookmark the location using ctrl+d. Then double click the file you want to edit in gedit.
One drawback: unless you ssh in as root, opening files that require root privileges is less straight forward using this approach. One thing you can do, if you have
Enter in the server info (use ssh:// or sftp:// for ssh connections).
For Ex:
ssh://username@remotemachine.com
Click on connect.
Once connected you can bookmark the location using ctrl+d. Then double click the file you want to edit in gedit.
One drawback: unless you ssh in as root, opening files that require root privileges is less straight forward using this approach. One thing you can do, if you have
nautilus-open-terminal installed, is to right click in the nautilus window where the file is located and select "open in remote terminal", then use sudo nano filename.txt as above.