User Tools

Site Tools


linux:mount:ftp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:mount:ftp [2020/10/11 14:44] – created mslinux:mount:ftp [2023/01/11 20:29] (current) – external edit 127.0.0.1
Line 9: Line 9:
  
 ===== Linux Zugriff auf Netzlaufwerk ===== ===== Linux Zugriff auf Netzlaufwerk =====
 +=== Nötige Packete ===
 +<code>
 +apt-get install ftp curlftpfs openssh-client
 +</code>
 +==== FTP / FTPS-Netzlaufwerk mounten ====
 +<code>
 +root> curlftpfs Benutzername:Passwort@<IP-ftp-server> <mount-point> -o <options>
 +root> curlftpfs Benutzername:Passwort@<IP-ftp-server> <mount-point> -o allow_other,disable_eprt          # FTP-mount
 +root> curlftpfs Benutzername:Passwort@<IP-ftp-server> <mount-point> -o allow_other,disable_eprt,tlsv1    # FTPS mount
 +</code>
 +==== FTP / FTPS-Netzlaufwerk un-mounten ====
 +<code>
 +fusermount -u <mount-point>
 +</code>
 +==== FTP / FTPS-Netzlaufwerk in /etc/fstab ====
 +<code>
 +root> vi /etc/fstab
 +
 +# sftp mount speedport manuell:
 +curlftpfs#<IP-ftp-server>  <mount-point>  fuse    rw,uid=1000,umask=0777,user,suid,allow_other,exec,auto,_netdev,utf8,tlsv1             1
 +</code>
 +Oder als auto-mount mit systemd
 +<code>
 +root> vi /etc/fstab
 +
 +# sftp mount speedport auto-mount mit systemd:
 +curlftpfs#<IP-ftp-server>  <mount-point>  fuse    rw,uid=1000,umask=0777,user,suid,allow_other,exec,_netdev,utf8,tlsv1,x-systemd.automount,x-systemd.idle-timeout=60      0       0
 +</code>
 +Bei Zugriff auf <mount-point> mountet systemd, bei 60s inaktivität wird das Verzeichnis abgehängt.
 +
 +Zugangsdaten in /root/.netrc
 +<code>
 +root> vi /root/.netrc
 +
 +machine <IP-ftp-server>
 +login Benutzername
 +password Passwort
 +
 +root> chmod 600 /root/.netrc
 +</code>
 +fuse.conf anpassen (uncomment user_allow_other):
 +<code>
 +root> vi /etc/fuse.conf
 +
 +user_allow_other
 +</code>
  
linux/mount/ftp.1602420291.txt.gz · Last modified: 2023/01/11 20:30 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki