Edit files on a remote server via your Mac using ssh, sshfs and brew

  1. install latest xcode
  2. install brew
  3. install sshfs using brew
    1. make sure to change any permissions specified
  4. mkdir mytmpdir
  5. sshfs -o uid=<your local numerical id> root@<remote server>:<remote dir> mytmpdir
    1. e.g. sshfs -o uid=501 root@ mytmpdir
  6. edit files that appear in tmpdir, and when you save them, the remote files will be updated
  1. umount mytmpdir


Popular posts from this blog

Debugging pfsense firewall rules clearly and easily

Direct ssh to a server via proxy using putty/plink on Windows

telnet vs netcat