LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 09:06 AM   #1
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
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, 09:57 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747
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, 10:07 AM   #3
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Original Poster
Rep: Reputation: 40
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 03:15 PM
Connect LAN Games through SSH TUNNEL pujakofriendly Programming 2 01-11-2007 07:08 AM
ssh to initiate process on remote machine jdarren Linux - Networking 3 03-23-2004 05:55 PM
Can't connect to vsFTPd through ssh tunnel Sizam Linux - Networking 0 06-27-2003 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:52 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
Open Source Consulting | Domain Registration