SSH
Jump to navigation
Jump to search
Contents
About
Command
ssh [options] [user]@[host] ["command"]
Example
SSH as user [root] to [remotehost].
ssh root@remotehost
SSH as user [root] to [remotehost] on port [2222].
ssh -p 2222 root@remotehost
SSH as user [root] to [remotehost] on port [2222] and send command [rm -rf dir].
ssh -p 2222 root@remotehost "rm -rf dir"
Trouble Shooting
sudo sshd -T