Ssh : Add sshmount.

This commit is contained in:
Dmitry Voronin 2024-02-26 00:16:51 +03:00
parent 154fb096a5
commit a18ec08be9
3 changed files with 8 additions and 1 deletions

View file

@ -29,7 +29,6 @@
scanmem scanmem
smartmontools smartmontools
sqlite sqlite
sshfs
steam-run steam-run
testdisk testdisk
tree tree

View file

@ -1,4 +1,5 @@
{ ... }: { { ... }: {
environment.systemPackages = with pkgs; [ sshfs ];
programs.ssh.extraConfig = '' programs.ssh.extraConfig = ''
Host dasha Host dasha
HostName 192.168.1.7 HostName 192.168.1.7

View file

@ -0,0 +1,7 @@
# Mount FS over ssh. Just extra config for sshfs.
# Usage: sshmount <REMOTE> <LOCAL>
function sshmount() {
sshfs -o uid=${UID},auto_unmount "${@}"
}
complete -o nospace -F _sshfs sshmount