Ssh : Add sshfs ro option.

This commit is contained in:
Dmitry Voronin 2024-04-05 03:30:25 +03:00
parent baa18ffdff
commit 946ee8d07f

View file

@ -4,6 +4,12 @@ function ssh_mount() {
sshfs -o uid=1000,auto_unmount,allow_other "${@}"
}
# Mount FS over ssh. Just extra config for sshfs.
# Usage: ssh_mount <REMOTE> <LOCAL>
function ssh_mount_ro() {
sshfs -o uid=1000,auto_unmount,allow_other,ro "${@}"
}
# Generate private an public keys on a local host and print a public key.
function ssh_keygen() {
ssh-keygen && cat ~/.ssh/*.pub