SSHFS with SSH Keys

You simply have to chmod your keyfile and use a some extra options

  • chmod 600 $HOME/.ssh/yourkeyfile
  • mkdir $HOME/mount-local
  • sshfs -o "IdentityFile=$HOME/.ssh/yourkeyfile" user@nwgat.ninja:/home/user $HOME/mount-local

other stuff

  • -o debug (enable debug)
  • -o ro (read only)
  • -p 22 (change port)