Skip to content

Instantly share code, notes, and snippets.

@Archie22is
Created November 24, 2022 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Archie22is/51c2254870285deea4230a2387a994b1 to your computer and use it in GitHub Desktop.
Save Archie22is/51c2254870285deea4230a2387a994b1 to your computer and use it in GitHub Desktop.
SFTP to a server using terminal
#SSH
$ sftp username@myserver.dreamhost.com
# Once logged, to list files
sftp> ls
# To view "Present Working Directory"
sftp> pwd
# To view "Local Present Working Directory"
sftp> lpwd
# To change "Local Present Working Directory"
sftp> lcd /Users/snoopdogg/htdocs_temp/old.infinitecouple.com
#Top put anything within your local working directory
sftp> put -r * .
# More coming soon...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment