I have machines A
and B
that can access a Relay
machine via ssh, but not vice versa. Can I access machine B
from A
via the Relay
machine without opening ports except 22
as that port is the only one accessible?
For example, a possible solution would be to ssh
from B
into Relay
and opening files for reading stdin
and writing stdout
. Connecting from A
to relay
allows reading and writing into these files for communication to B
.
Is there a way with command line tools to achieve this?