LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-22-2014, 04:58 AM   #1
nolretou
Member
 
Registered: Apr 2014
Distribution: Slackware
Posts: 98

Rep: Reputation: Disabled
Question Setting up a SSH gateway.


Hi !

I would like to create a SSH gateway server in a special way.
I use Slackware, and would like to use key auths.

The SSH client is A.
The gateway is B.
The SSH server i'd like to connect to is C.

C creates a connection to B, A connects to B, so A automatically connects to C through B.

B<--C
A-->B
A-->B-->C

I'm a bit lost in sshd options, and have some difficulties finding tutorials on Google.
 
Old 04-22-2014, 06:58 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
look at my sig, there are several links that will help with this. including a script you might like
 
Old 04-22-2014, 08:49 AM   #3
nolretou
Member
 
Registered: Apr 2014
Distribution: Slackware
Posts: 98

Original Poster
Rep: Reputation: Disabled
First tests.

I had to add "GatewayPorts yes" to the gateway server's sshd_config, otherwise it was listening to 127.0.0.1 only.

Now when i try to connect from the client, i have a "ssh_exchange_identification: Connection closed by remote host".
 
Old 04-23-2014, 05:14 AM   #4
nolretou
Member
 
Registered: Apr 2014
Distribution: Slackware
Posts: 98

Original Poster
Rep: Reputation: Disabled
I forgot to start the SSH server on the C machine !
It's working now.

I'll do more tests and come back if needed.

Meanwhile thanks for the help.
 
Old 04-23-2014, 06:51 AM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
glad those wiki's help.
 
  


Reply



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 a router/gateway Tom Douglas Linux - Networking 9 08-20-2008 05:51 PM
Setting up gateway jamie_barrow Linux - Networking 2 05-08-2007 06:40 AM
Setting up a gateway... beebs Linux - Networking 6 10-16-2004 04:26 PM
Gateway Setting ChangeOfPace Linux - Networking 4 05-05-2004 08:44 AM
SUSE 9 setting gateway stress Linux - Networking 16 02-22-2004 01:37 AM

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

All times are GMT -5. The time now is 02:26 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