LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

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

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


Hi,

Given the following setup:

Code:
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:

Code:
[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
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,517

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
I think that you want a reverse secure shell tunnel.
e.g. http://www.howtoforge.com/reverse-ssh-tunneling
http://www.techrepublic.com/article/...tunnel/5779944
 
Old 09-07-2011, 11:07 AM   #3
brianmcgee
Member
 
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.
 
  


Reply

Tags
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 08:03 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration