LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-06-2019, 05:01 PM   #1
nicedreams
Member
 
Registered: Jun 2003
Location: Phoenix, AZ
Posts: 103

Rep: Reputation: 17
proxyjump to reverse ssh connection on bastion?


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?

Last edited by nicedreams; 12-06-2019 at 05:24 PM.
 
Old 12-06-2019, 05:27 PM   #2
nicedreams
Member
 
Registered: Jun 2003
Location: Phoenix, AZ
Posts: 103

Original Poster
Rep: Reputation: 17
Of course I think I figured it out after posting this. Working by doing the following:

ssh -J user@cloudserver.com localhost -p 5432
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: SSH to remote hosts though a proxy or bastion with ProxyJump LXer Syndicated Linux News 0 12-06-2019 01:10 AM
ProxyJump on ssh(1) while crossing rdomain(4) Turbocapitalist *BSD 0 04-14-2018 01:45 PM
LXer: Review: Citadel: A Bastion of Groupware Functionality LXer Syndicated Linux News 0 09-10-2008 03:10 AM
LXer: Citadel: A Bastion of Groupware Functionality LXer Syndicated Linux News 0 04-09-2008 07:00 AM
Bastion Host gfdecaires Linux - Networking 0 10-13-2005 06:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration