Created
November 24, 2022 03:29
-
-
Save Archie22is/51c2254870285deea4230a2387a994b1 to your computer and use it in GitHub Desktop.
SFTP to a server using terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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