1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 13:44:56 +02:00
tldr/common/ssh.md
Peter Tripp e4118b1585 A bunch of new pages:
common/: dig, gzip, rm, sort, zfs, zpool
linux/: apt-get, shutdown
osx/: airport, caffeinate, diskutil, networksetup open, pgrep, qlmanage, say, shutdown, sysctl, system_profiler

Edits to existing pages:
curl: Added simple download example
find: Added iname and size exmaples
grep: Edited -c description
ps: Added wide lines example
ssh: edited -D description, added simple port forwarding example
unzip: added list option
2014-02-10 12:36:05 -08:00

20 lines
586 B
Markdown

# SSH
> Secure Shell is a protocol used to securely log onto remote systems.
> It can be used for logging or executing commands on a remote server.
- connecting to a remote server
`ssh {{username}}@{{remote_host}}`
- connecting to a remote server with specific port
`ssh {{username}}@{{remote_host}} -P {{2222}}`
- ssh tunneling: dynamic port forwarding (SOCKS proxy on localhost:9999)
`ssh -D {{9999}} -C {{username}}@{{remote_host}}`
- ssh tunneling: forward a specific port (localhost:9999 to slashdot.org:80)
`ssh -L {{9999}}:slashdot.org:80 {{username}}@{{remote_host}}`