Skip to main content

SSH File Sharing

Pre-Installation

sudo apt install sshpass sshfs

Create a file in /opt/seedbox.sh (be sure to set the password):

#!/bin/bash
sshpass -p <password> ssh -oHostKeyAlgorithms=+ssh-rsa $*

Add this line to /etc/fstab (note the location of seedbox.sh):

sshfs#psb29404@psb29404.seedbox.io:/files /media/seedbox fuse ssh_command=/opt/seedbox.sh,uid=1000,gid=1000,users,rw,idmap=user,x-systemd.automount,noatime,allow_other,auto_cache,reconnect,HostKeyAlgorithms=+ssh-rsa 0 0

Add this to ~/.ssh/config:

Host psb29404.seedbox.io
    PubkeyAcceptedAlgorithms +ssh-rsa
    HostkeyAlgorithms +ssh-rsa

Run sudo mount -a