Reverse SSH tunneling

From wikieduonline
Revision as of 14:02, 22 January 2024 by Welcome (talk | contribs) (→‎Related)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


1) Create remote port forwarding

 ssh -f -N -T -R2222:localhost:22 $(hostname -i)
 ssh -f -N -T -R2222:localhost:22 yourmachineip.example.com or 
 ssh -fNT -R2222:localhost:22 [email protected]
  -T Disable pseudo-terminal allocation.


2) Connect

ssh -p 2222 localhost


Error[edit]

Bad remote forwarding specification

Solution: -R2222243653 review you do not exceed size of port.
kex_exchange_identification: read: Connection reset by peer

Activities[edit]

Related[edit]

See also[edit]

Advertising: