Skip to content

Instantly share code, notes, and snippets.

@shammelburg
Last active September 28, 2017 08:34
Show Gist options
  • Save shammelburg/f690742f35d662ef8063f86f178fd486 to your computer and use it in GitHub Desktop.
Save shammelburg/f690742f35d662ef8063f86f178fd486 to your computer and use it in GitHub Desktop.
ssh commands
// open ssh connection to your remote
ssh user@ip
// ssh tunnel for vnc
// screen share using 'localhost:15900' => 'remote:5900'
ssh -N -p 22 user@ip -L 127.0.0.1:15900:127.0.0.1:5900 -v
// ssh copy mac
// remote location eg. '~/desktop'
scp <local_file_location> user@ip:<remote_location>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment