Showing posts with label remotely. Show all posts
Showing posts with label remotely. Show all posts

Thursday, 25 April 2013

Edit remote files with local editor using ssh and sshfs


  1. apt-get -y install sshfs
  2. Add your local user to the fuse group
  3. mkdir ~/mylocaldir
  4. sshfs -o idmap=user mylocaluser@myremoteserver.com:/remotepath ~/mylocaldir
  5. Edit files under ~/mylocaldir, and as you save them, they are automatically updated in /remotepath
Note: the "-o uid=500" can be used if you get permission errors, but replace "500" with you local id number

Errors
  1. "Couldn't read packet: Connection reset by peer"
    1. change this line in your /etc/ssh/sshd_config file to match what's here
      1. Subsystem sftp internal-sftp
    2. happens on RedHat Enterprise 6.1 for sure

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...