Skip to content

Instantly share code, notes, and snippets.

@AglaianWoman
Forked from etoxin/ssh.md
Created November 16, 2017 01:35
Show Gist options
  • Select an option

  • Save AglaianWoman/fafa17e82d099a732d41b0d98acf2c71 to your computer and use it in GitHub Desktop.

Select an option

Save AglaianWoman/fafa17e82d099a732d41b0d98acf2c71 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