Portál AbcLinuxu, 10. května 2025 01:42
ssh -R 2222:localhost:22 user@POC2
a potom se zkusím na POC2 přihlásit telnetem telnet POC2 2222
vypíše mi to telnet: connect to address POC2: Connection refused
.telnet localhost 2222
připojení se povede. Pokud pustím ssh na POC2 na portu 2222, spojení zvenku se taky povede. Nevíte co dělám špatně?
-R [bind_address:]port:host:hostport (...) By default, the listening socket on the server will be bound to the loopback interface only. This may be overriden by specifying a bind_address. An empty bind_address, or the address '*', indi- cates that the remote socket should listen on all interfaces. Specifying a remote bind_address will only succeed if the server's GatewayPorts option is enabled (see sshd_config(5)).Nemuze to byt ono?
-g Povoli vzdalenym strojum poipojovani na lokalni forwardovane porty. Implicitni se muze na tyto porty poipojovat pouze localhost.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.