Skip to content

Instantly share code, notes, and snippets.

@etoxin
Last active June 10, 2020 14:20
Show Gist options
  • Save etoxin/0a9ad37dd297bb882e09 to your computer and use it in GitHub Desktop.
Save etoxin/0a9ad37dd297bb882e09 to your computer and use it in GitHub Desktop.
SSH

tunnel a remote port on a server to your local machine

ssh -L 12345:localhost:5984 user@website.com

Tunnel a Website through your server to a pre defined port.

blocked websites.

ssh -L 9000:imgur.com:80 user@example.com

Copy a remote file

scp user@domain.com:/filepath/readme.txt /destination/file.txt
# to upload. Reverse
scp /file/upload.txt user@domain.com:/destination/file.txt

ssh over another port

ssh user@domain.com -p 443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment