Difference between revisions of "SSH"

From Void-Byte
Jump to navigation Jump to search
(Created page with "== About == == Command == <code>ssh [options] [user]@[host] ["command"]</code> == Example == <h3>SSH as user [root] to [remotehost].</h3> <code>ssh root@remotehost</code><br...")
 
(No difference)

Latest revision as of 14:27, 27 April 2020

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