Instructions for installing fuse based sshfs (ssh file system) on Debian based distros.
SSHFS
Install sshfs:
sudo apt-get install fuse-utils sshfs
|
Add user to fuse group:
sudo adduser your_user_name fuse
|
Mount the remote directory:
sshfs ftp_user_name@ftp_host: remote_dir/
|
SSH Keys
Connect without a password using public key authentication.
chmod 700 remote_dir/. ssh
|
cat ~/. ssh /id_rsa .pub > remote_dir/. ssh /authorized_keys
|
chmod 600 remote_dir/. ssh /authorized_keys
|
Disconnect and reconnect
Keep Alive
Add/amend ~/.ssh/config or /etc/ssh/ssh_config