I'm trying to edit a file from a remote computer connected via ssh. How can I open the remote file on my local computer to edit?
SSH – Open File from Remote Computer on Host Computer
remotessh
remotessh
I'm trying to edit a file from a remote computer connected via ssh. How can I open the remote file on my local computer to edit?
Best Answer
You can mount the remote directory with
sshfs
, after that, the file is accessible in your local directory tree.Example:
It's all in the man pages.
Or just copy the file over with
scp/rsync
, edit it, and copy it back.