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

Openvpn and unbound combined break dig command

Stress Linux system: stress-ng

Google Nexus 4: permanent back panel glass repair for less than a penny