Benutzer-Werkzeuge

Webseiten-Werkzeuge


sshfs

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
sshfs [2024-03-28 00:27:50] – [Linux (Ubuntu)] manfredsshfs [2024-07-07 17:28:32] (aktuell) – [AutoFS / AutoMount] manfred
Zeile 1: Zeile 1:
 ====== sshfs ====== ====== sshfs ======
 +
 +  * [[::SSH / SSL]]
 +  * [[::SSH-Schlüssel austauschen für ein passwortlosen Login]]
 +    * ''ssh-keygen -t ed25519 -a 1024''
  
 [[http://stefankonarski.de/content/verschluesseltes-netzwerkdateisystem-sshfs-unter-freebsd]] [[http://stefankonarski.de/content/verschluesseltes-netzwerkdateisystem-sshfs-unter-freebsd]]
Zeile 46: Zeile 50:
  
   fratz@server: /server/fritz fusefs.sshfs rw,mountprog=/usr/local/bin/sshfs,late,reconnect,umask=0002,uid=1000,gid=1000,allow_other 0 0   fratz@server: /server/fritz fusefs.sshfs rw,mountprog=/usr/local/bin/sshfs,late,reconnect,umask=0002,uid=1000,gid=1000,allow_other 0 0
 +
 +
 +===== Debian 12.5 =====
 +
 +
 +==== AutoFS / AutoMount ====
 +
 +  root@debian:~# apt install autofs sshfs
 +  root@debian:~# useradd -m mm
 +  root@debian:~# id mm
 +  uid=1001(mm) gid=1001(mm) groups=1001(mm)
 +  
 +  root@debian:~# su - mm
 +  mm@debian:~$ ssh-keygen -t ed25519 -a 1024
 +  mm@debian:~$ cat ~/.ssh/id_ed25519.pub
 +
 +//Dieser PUB-Key muß unter mm@192.168.0.1 abgelegt werden!//
 +
 +  mm@192.168.0.1:~$ vim /home/mm/.ssh/authorized_keys
 +
 +<file bash root@debian:/etc/auto.master>
 +...
 +
 +/mm /etc/auto.sshfs -g -t 20 -uid=1001 -gid=1001
 +</file>
 +
 +<file bash root@debian:/etc/auto.sshfs>
 +# SSHFS
 +Audio -fstype=fuse.sshfs,ro,allow_other,noatime,follow_symlinks,idmap=user,auto_cache,reconnect,ServerAliveInterval=15,Ciphers=aes128-ctr,Compression=no,IdentityFile=/home/mm/.ssh/id_ed25519 :sshfs\#mm@192.168.0.1\:/Audio
 +Video -fstype=fuse.sshfs,ro,allow_other,noatime,follow_symlinks,idmap=user,auto_cache,reconnect,ServerAliveInterval=15,Ciphers=aes128-ctr,Compression=no,IdentityFile=/home/mm/.ssh/id_ed25519 :sshfs\#mm@192.168.0.1\:/Video
 +</file>
 +
 +  root@debian:~# service autofs restart
 +  root@debian:~# ls -lha /mm/
 +  total 4.0K
 +  drwxr-xr-x  4 root root    0 Mar 29 23:52 .
 +  drwxr-xr-x 20 root root 4.0K Feb 21 01:55 ..
 +  drwxr-xr-x  2 root root    0 Mar 29 23:52 Audio
 +  drwxr-xr-x  2 root root    0 Mar 29 23:52 Video
 +  
 +  root@debian:~# ls -lha /mm/Audio/
 +  total 36M
 +  drwxrwxr-x 1 mm   mm     7 Sep 20  2023  .
 +  drwxr-xr-x 4 root root   0 Mar 29 23:52  ..
 +  drwxrwxr-x 1 mm   mm    33 Jul  8  2023  Musik
  
  
Zeile 68: Zeile 117:
 mount: mount:
   # echo "user_allow_other" >> /etc/fuse.conf   # echo "user_allow_other" >> /etc/fuse.conf
-  # sshfs fritz@mars: /mnt -o allow_other -o sshfs_sync -o follow_symlinks -o ServerAliveInterval=15+  # sshfs fritz@mars: /mnt -o allow_other,sshfs_sync,follow_symlinks,idmap=user,auto_cache,reconnect,ServerAliveInterval=15,cache=yes,kernel_cache,Ciphers=aes128-ctr,Compression=no,IdentityFile=/home/frirtz/.ssh/id_ed25519
  
 umount: umount:
/home/http/wiki/data/attic/sshfs.1711585670.txt · Zuletzt geändert: von manfred