Ssh : Add sshfs ro option.
This commit is contained in:
parent
baa18ffdff
commit
946ee8d07f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue