proxyjump to reverse ssh connection on bastion?
by nicedreams from LinuxQuestions.org on (#4W706)
I have a linux box connected via reverse ssh to a cloud server. From there I can ssh into that connected box from cloud server doing: ssh localhost -p 5432
What I want to do is be able to proxyjump from home to cloud server into the box connected via reverse ssh. I've tried multiple commands where this seems most logical
ssh -J user@cloudserver.com localhost:5432
but doesn't work. My logic is I jump to user@cloudserver.com and connect to it's localhost:5432 port which would be the reverse ssh connected box.
It it possible to proxyjump to a reverse connected ssh tunnel? Do I not use -J flag?


What I want to do is be able to proxyjump from home to cloud server into the box connected via reverse ssh. I've tried multiple commands where this seems most logical
ssh -J user@cloudserver.com localhost:5432
but doesn't work. My logic is I jump to user@cloudserver.com and connect to it's localhost:5432 port which would be the reverse ssh connected box.
It it possible to proxyjump to a reverse connected ssh tunnel? Do I not use -J flag?