LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-08-2016, 10:20 AM   #1
yanive
LQ Newbie
 
Registered: Jul 2016
Posts: 2

Rep: Reputation: Disabled
SSH tunneling via putty


Hi,

I am trying to make SSH tunneling work without much success.

environment:

- my laptop (Windows) - source
- server1 (CentOS) - intermediate
- server2 (CentOS) - destination.

i am trying to ssh from my laptop to server2 via server1 (SSH only).
whatever i tried so far i cant see any traffic coming to server1 (tcpdump is running on server1).

appreciate any feedback.
Peace.
yanive
 
Old 07-08-2016, 12:01 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
I don't understand the problem. Can you ssh to server1? Can you then ssh from server1 to server2? Where is the breakdown?
 
Old 07-08-2016, 03:06 PM   #3
yanive
LQ Newbie
 
Registered: Jul 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
SSH Tunneling via putty

I am trying to establish a tunneling connection using Putty from my laptop to server2 via server1.
i can SSH to server1 and then SSH to server2 but i want to do it via tunneling.

Thanks
Y.
 
Old 07-08-2016, 03:08 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
What tunnels do you want to open? Between which machine and which machine, and what data would pass through? What is the ultimate goal here?

Quote:
Originally Posted by yanive View Post
i can SSH to server1 and then SSH to server2 but i want to do it via tunneling.
Why? The purpose of an ssh tunnel is generally so you can pass other, non-ssh data through an encrypted tunnel that wouldn't otherwise be encrypted, or wouldn't otherwise have access on the necessary port. Maybe if I understood how you intend to use it, I could help with how it needs to be set up.

Are you perhaps asking for the putty equivalent of:
Code:
ssh -f -NL 9999:server2:22 user@server1
Which would open a tunnel between your laptop and server1, with an exit point at port 22 on server2? So that future connections from your laptop could simply access localhost:9999 and they would end up at the sshd server on server2? Or do you want to open a tunnel between server1 and server2 so that if you ssh to server1 on a special port from any computer you'll end up on server2 instead?

Last edited by suicidaleggroll; 07-08-2016 at 03:28 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple IP Tunneling through SSH (putty) on Debian7 Faded Linux - Networking 4 06-19-2015 03:11 PM
SSH server and SSH tunneling Achical Linux - Security 5 05-20-2012 10:07 AM
Help with Ubuntu server remote ssh and local network ssh issues using putty. scottpops Linux - Server 8 05-17-2012 05:07 PM
[SOLVED] XDMCP tunneling in Xming portable PuTTY SSH connection ljlayne Linux - Enterprise 0 07-21-2011 05:40 PM
want help in putty tunneling nirajkanti Linux - Newbie 2 12-25-2010 10:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:07 PM.

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