LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-25-2015, 03:50 AM   #1
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Rep: Reputation: Disabled
How to use the ssh tunnel between public ip and private ip?


A host is in the private net which ip is private 192.168.1.1 and os is win7.
B host is in the public net which ip is 166.x.x.x and os is debian8.
Now i set a ssh tunnel in host A to host B with putty.
The ssh reverse tunnel was built ,how to connect the A host from B host to use the tunnel then?
Attached Thumbnails
Click image for larger version

Name:	捕获1.PNG
Views:	58
Size:	44.3 KB
ID:	20369   Click image for larger version

Name:	捕获2.PNG
Views:	45
Size:	43.9 KB
ID:	20370  
 
Old 12-25-2015, 04:50 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
probably this helps: https://www.howtoforge.com/reverse-ssh-tunneling
 
1 members found this post helpful.
  


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
ssh public and private keys... sigint-ninja Linux - Newbie 5 05-07-2015 05:11 PM
how does SSH use public/private Keys tripialos Linux - General 5 01-15-2013 02:51 AM
need help with SSH private/public key taduser Linux - Security 2 04-02-2007 07:07 PM
ssh public/private keys lord_darkhelmet Linux - Newbie 8 10-29-2005 03:14 PM
Help with SSH and public/private keys stodge Linux - Security 5 05-14-2003 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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