Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I would like the ability to be able to use the cli on a client that has remotely connected to me via my ssh server in my office and use their terminal to work remotely if I am in another remote location.
Ex.
The client reverse ssh's to my remote ssh server in my office.
On first reading your question I thought it was a simple case of "ssh inside ssh" - a web search returns various useful pages.
But are you in fact trying to reuse an ssh session already set up and authenticated by another person? As in
Code:
A (you, remote) ------ S (server, office) ----- C (client, remote)
1 <---------- C sets up reverse ssh session
2 ----------> A sets up ssh session
3 ----------> A wants cli access to C
I'm not sure if this is possible. Creating a new ssh session from your login shell at 'S' definitely is - why not do that?
For example, IP address of the SSH server is 192.168.0.1 and the terminal of one equipment connect with 192.168.0.2 machine.
You can do SSH to SSH server 192.168.0.1 at first and then do SSH to 192.168.0.2 machine again in SSH 192.168.0.1 session. In second session, you monitor the equipment through terminal.
A (you, remote) ------ S (server, office) ----- C (client, remote)
1 <---------- C sets up reverse ssh session
2 ----------> A sets up ssh session
3 ----------> A wants cli access to C
It's possible and pretty easy if you set up a new ssh session in step 3 - but you'll need the key and/or password for an account on C. Are you trying to avoid that?
I doubt that it's possible for you to reuse an existing ssh session ... it would mean that whenever I ssh into a shared server, any admin on that server can now access my client machine ... not what I want!
The reason that I ask this question is that some of the sites they dont allow ssh access into their network. So typically I have them ssh to my server and up unto this point, I "vnc" to the Gnome desktop and open up a terminal in that manner to be able to work. I wanted to avoid accessing the GUI and be able to access the cli directly. Would "-S" option work using SSH? Is that what I need to be using?
Most of the clients that I deal with dont want to poke a hole in their firewall(unnecessary open ports) to allow me access to there linux systems. So as a results, I just have them access an ssh server(Reverse ssh) that I setup and then I simply remote into the linux system(Gnome Desktop) and open a terminal and bang away. So in a nutshell, I want to do the samething but the difference being a terminal instead of a desktop.
Last edited by metallica1973; 01-10-2013 at 12:55 PM.
They are extremely anal and will not do that. TCP:80,443 are used for their HTTP/HTTPS servers so enabling the sshd daemon on these ports will not be a viable option. So based on your answers, I am assuming this cannot be done. Thanks for your help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.