Basics
Basic connection (to get a remote shell)
Verify that SSH is running on the server
Refer to the section on sshd
Retrieve a remote shell
$ ssh -i [identity_file] user@server
# eg. Connect to server address 10.10.10.10 using a key stored
# in key.pm for the user jarrett
$ ssh -i key.pem jarrett@10.10.10.10
-i
identity_file
Selects a file from which the identity (private key) for public key authentication is read.
Execute remote commands on the SSH server
# basic command
$ ssh user@server command1
$ ssh user@server 'command2'
Other common flags
-p
Specifies which port to connect to (default is 22)
Last updated