2013-08-27 02:34:36 +02:00
|
|
|
# To ssh via pem file (which normally needs 0600 permissions):
|
|
|
|
ssh -i /path/to/file.pem user@example.com
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To execute a command on a remote server:
|
2013-08-11 21:37:11 +02:00
|
|
|
ssh -t user@example.com 'the-remote-command'
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To tunnel an x session over SSH:
|
2013-08-11 21:37:11 +02:00
|
|
|
ssh -X user@example.com
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To launch a specific x application over SSH:
|
2013-08-11 21:37:11 +02:00
|
|
|
ssh -X -t user@example.com 'chromium-browser'
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# For more information, see:
|
|
|
|
# http://unix.stackexchange.com/q/12755/44856
|
2013-08-27 02:34:36 +02:00
|
|
|
To execute a command on a remote server:
|
|
|
|
ssh -t user@example.com 'the-remote-command'
|