Wednesday, June 30, 2021

Map drive ubuntu by sshfs

sudo apt-get install sshfs

sudo mkdir /mnt/droplet

sudo sshfs -o allow_other,default_permissions root@xxx.xxx.xxx.xxx:/mnt/droplet /mnt/droplet

sudo sshfs -o allow_other,default_permissions,IdentityFile=~/.ssh/id_rsa root@xxx.xxx.xxx.xxx:/ /mnt/droplet

Ref

  • https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-20-04
  • https://blog.inslash.com/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh-5562de89b80b

No comments:

Post a Comment

Popular Posts