SSH

From Void-Byte
Revision as of 14:27, 27 April 2020 by Bgrambo (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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