Useful Commands update
Just a quick update for the Useful commands page.
SSH
The scp Command to copy from a remote server to a local host:
scp username@sourcehost:sourcefile /localfolder/destinationfile
or
scp username@sourcehost:sourcefile username@destinationhost:/localfolder/destinationfile
Port Forwarding
Allows encrypted data streams between 2 hosts. All traffic coming to port 1234 on the client will be forwarded to port 23(can be changed as required) on the server (host). Note that localhost will be resolved by the sshdserver after the connection is established. In this case localhost therefore refers to the server (host) itself.
ssh -2 -N -f username@host -L 1234:localhost:23
Also ssh -D 1234 username@server is useful for dynamic port forwarding, for use in a socks proxy.