Difference between revisions of "Reverse SSH tunneling"
Jump to navigation
Jump to search
Line 37: | Line 37: | ||
* <code>[[ssh tunnel]]</code> | * <code>[[ssh tunnel]]</code> | ||
* <code>[[myip]]</code> | * <code>[[myip]]</code> | ||
− | * [[ip route add]] | + | * <code>[[ip route add]]</code> |
== See also == | == See also == |
Revision as of 11:10, 13 December 2023
- See also:
ssh -R
- TOMERGE: ssh tunnel
1) Create tunnel
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
Contents
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
- SSH:
ssh
, TLS,.ppk, .pem, .crt, .pub
, ED25519, Key exchange method (KEX), public key, private key,ssh -Q kex
,IAMUserSSHKeys
,known_hosts
, ssh tunnel, Dropbear
Advertising: