Here are the most common solutions for mounting remote storage on Debian:
NFS (Network File System)
sudo apt update && sudo apt install nfs-common to install the required tools.sudo mkdir -p /mnt/nfs to create a directory for mounting.sudo mount -t nfs <server_ip>:/remote/share /mnt/nfs (replace with your server’s IP and share path)./mnt/nfs nfs defaults 0 0 to /etc/fstab for persistent mounting.Samba (SMB/CIFS)
cifs-utils with sudo apt update && sudo apt install cifs-utils.sudo mkdir -p /mnt/samba.sudo mount -t cifs //<server_ip>/share /mnt/samba -o username=<user>,password=<pass> (add iocharset=utf8 for non-ASCII characters).//<server_ip>/share /mnt/samba cifs username=<user>,password=<pass>,iocharset=utf8 0 0 to /etc/fstab.SSHFS (Secure Shell Filesystem)
sudo apt update && sudo apt install sshfs.sudo mkdir -p /mnt/sshfs.sudo sshfs <user>@<server_ip>:/remote/dir /mnt/sshfs (use -o identityfile=~/.ssh/id_rsa for key-based auth).<user>@<server_ip>:/remote/dir /mnt/sshfs fuse.sshfs _netdev,user,idmap=user,identityfile=~/.ssh/id_rsa,allow_other,default_permissions 0 0 to /etc/fstab.FTP (via curlftpfs)
sudo apt update && sudo apt install curlftpfs.mkdir ~/ftp_mount.curlftpfs ftp://<user>:<pass>@<server_ip> ~/ftp_mount (store credentials in ~/.netrc for automation).<server_ip> ~/ftp_mount fuse._curlftpfs _netdev,user,allow_other,default_permissions 0 0 to /etc/fstab.Key Notes:
<server_ip>, <user>, <pass>) with your actual server details./etc/fstab; use credential files (e.g., ~/.netrc) with chmod 600 permissions.sudo mount -a before rebooting to verify /etc/fstab syntax.