From 792059b769701bfc594bb318a8aa32bc7e0ad052 Mon Sep 17 00:00:00 2001 From: wh1t3fang <35537694+wh1t3fang@users.noreply.github.com> Date: Wed, 24 Oct 2018 00:34:36 -0400 Subject: [PATCH] Update transferring files with info on sshfs Included info on sshfs which is useful for creating a directory to point to where the file will be automatically copied to a remote server over an ssh tunnel to encrypt the data transfer. --- transfering_files.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/transfering_files.md b/transfering_files.md index eb7b0b4d..d3a345d6 100644 --- a/transfering_files.md +++ b/transfering_files.md @@ -165,5 +165,17 @@ scp /path/to/source/file.ext username@192.168.1.101:/path/to/destination/file.ex scp -r /path/to/source/dir username@192.168.1.101:/path/to/destination ``` +### SSHFS +``` +# Install sshfs on Debian based distros: +sudo apt-get update && sudo apt-get install sshfs +# Syntax for sshfs: +sshfs [user@]host:[directory] mountpoint [options] +# Example command where the sshfsExample directory is created locally and any files transferred to it will show up in the /home/user directory on the remote ssh server: +mkdir sshfsExample +sshfs user@192.168.0.0:/home/user sshfsExample +# unmount the directory by using the following command: +umount sshfsExample +```