Saturday 5 October 2013

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@10.1.0.100:images mytmpdir
  6. edit files that appear in tmpdir, and when you save them, the remote files will be updated
Unmount
  1. umount mytmpdir

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Interview questions: 2020-12

Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...