Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


Search this Thread
Old 09-07-2011, 10:06 AM   #1
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 38
Initiate ssh tunnel to connect to ssh?


Given the following setup:

Client            <Firewall>             Server
22 SSH |------initiate SSH Tunnel------> 22 SSH
+---------connect to SSH via Tunnel------12345
Is it possible that a client initiates a SSH tunnel with a server via passwordless login so that someone at the server side may connect via:

[Server]$ ssh -p 12345 user@localhost
and to be forwarded to the Client's port 22? And if that is possible, could someone please enlighten me how this is done?
Old 09-07-2011, 10:57 AM   #2
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,583

Rep: Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902
I think that you want a reverse secure shell tunnel.
Old 09-07-2011, 11:07 AM   #3
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Original Poster
Rep: Reputation: 38
Thanks. That is exactly what I was looking for! With the proper keyword also the man page of ssh reveals the right parameters.


forwarding, ssh, tunnel

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
setting up an ssh soxy or local ssh tunnel from within an ssh soxy Mangenius Linux - Networking 0 03-05-2007 04:15 PM
Connect LAN Games through SSH TUNNEL pujakofriendly Programming 2 01-11-2007 08:08 AM
ssh to initiate process on remote machine jdarren Linux - Networking 3 03-23-2004 06:55 PM
Can't connect to vsFTPd through ssh tunnel Sizam Linux - Networking 0 06-27-2003 01:30 PM

All times are GMT -5. The time now is 06:14 AM.

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