This is the easiest way to locally edit files which live on remote host where you have previously setup ssh to remote IP
# issue on local box
sudo apt-get install sshfs # on local host install sshfs ( linux )
# on local box create secure mount of remote directory
export REMOTE_IP=107.170.58.249 # remote host IP
sshfs myremoteuserid@${REMOTE_IP}:/your/remote/dir /your/local/dir # for example
Done !!!
Now on local host just start editing files ... when you list dir locally it may not list anything until you cd into subdir or list a specific file ... lazy loading ... this does not impact editing files
subl /your/local/dir/magnum_opus.go # local file edit using sublime text
so above is actually editing remote file at
/your/remote/dir/magnum_opus.go # remote file on box $REMOTE_IP
For OSX or Windows see this tut from the kind folk over on Digital Ocean