Skip to content

Instantly share code, notes, and snippets.

@braynm
Created October 9, 2017 08:28
Show Gist options
  • Save braynm/5f05b90b5da2dd000b266ca91104c946 to your computer and use it in GitHub Desktop.
Save braynm/5f05b90b5da2dd000b266ca91104c946 to your computer and use it in GitHub Desktop.
Download a single file from a remote ftp server to your machine:
sftp username@hostname:remoteFileName localFileName
Upload a single file from your machine to a remote ftp server:
sftp {user}@{host}:{remote_dir} <<< $'put {local_file_path}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment