Difference between revisions of "Reverse SSH tunneling"

From wikieduonline
Jump to navigation Jump to search
Line 25: Line 25:
 
== Related ==
 
== Related ==
 
* <code>[[ifconfig -a]]</code>
 
* <code>[[ifconfig -a]]</code>
* [[ssh -f -N -T]]
+
* <code>[[ssh -f -N -T]]</code>
* [[ssh -p]]
+
* <code>[[ssh -p]]</code>
 
* [[Port forwarding]]
 
* [[Port forwarding]]
* [[ssh tunnel]]
+
* <code>[[ssh tunnel]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 10:14, 13 December 2023

1) Create tunnel

ssh -f -N -T -R22222:localhost:22 yourmachineip.example.com
  
  -T Disable pseudo-terminal allocation.
ssh -fNT -R2222:localhost:22 [email protected]

2) Connect

ssh -p 2222 localhost


Error

Bad remote forwarding specification

Solution: -R2222243653 review you do not exceed size of port.


kex_exchange_identification: read: Connection reset by peer

Activities

Related

See also

Advertising: