Skip to content

Instantly share code, notes, and snippets.

@sitebuilderone
Last active June 25, 2016 06:14
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 sitebuilderone/e4c6ab7c0c7818b7b4acff29ae999b27 to your computer and use it in GitHub Desktop.
Save sitebuilderone/e4c6ab7c0c7818b7b4acff29ae999b27 to your computer and use it in GitHub Desktop.
Terminal Commands
SSH and SCP Without Passwords
// create a key pair
$ ssh-keygen
// VIEWING
// order by date
ls -t
ls -tr
// UPLOADING VIA SSH
// Upload files from local to remote
scp <file to upload> <username>@<hostname>:<destination path>
// example:
scp /Users/A***/downloads/Archive.zip username@101.101.101.101:/home/a***/folder
// MOVE a file
mv file_1.txt /home/site/folder
// UNZIP-UNPACK FILES
unzip archive.zip
@sitebuilderone
Copy link
Author

@sitebuilderone
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment