sshfs
sshfs mountet SFTP Verbindungen.
Quelle: https://www.lexo.ch/blog/2025/01/linux-how-to-mount-sftp-file-system/
apt update
apt install sshfs
# hz-02 via SFTP mounten
mkdir /mnt/pl-hz-02
sshfs root@pl-hz-02:/ -p 22 -o IdentityFile=/root/.ssh/id_ed25519_hz-01 /mnt/pl-hz-02/
Für dauerhaftes mounte auch nach reboot, folgendes in nano /etc/fstab eintragen:
das root verzeichnis ("/") mounten:
sshfs#root@pl-hz-02:/ /mnt/pl-hz-02 fuse uid=1003,gid=100,umask=0,allow_other,_netdev,IdentityFile=/root/.ssh/id_ed25519_hz-01 0 0
oder direkt ein mnt/volume mounten:
sshfs#root@server-01.MEINEDOMAIN.de:/mnt/hetzner-volume-02/ /mnt/hetzner-volume-02 fuse uid=1003,gid=100,umask=0,allow_other,_netdev,IdentityFile=/root/.ssh/privatekey.ppk 0 0
No Comments