LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-05-2012, 06:07 AM   #1
linux2man
Member
 
Registered: Oct 2006
Posts: 33

Rep: Reputation: 16
Hide IP of source on Dest.


Hello
I want to connect to server via SSH without showing my IP on destination server
for example I want to connect from server1 to server2 and I can use server3 in middle but at final I want server1's IP to be hidden on server2.
I think it can be handling using SSH -L


Thanks
 
Old 10-05-2012, 06:47 AM   #2
arun5002
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 549
Blog Entries: 5

Rep: Reputation: Disabled
Hi

Yes,You can achieve these using Port Fowarding .Look after these link

http://www.linuxquestions.org/questi...ng-4175429216/
 
Old 10-05-2012, 07:38 AM   #3
Turbocapitalist
Member
 
Registered: Apr 2005
Distribution: Ubuntu, Debian, OS X (bsd)
Posts: 156

Rep: Reputation: 30
You can do that several ways. Here is one way using tunneling. First set up a tunnel:
$ ssh -L 2222:machine2.example.org:22 machine3.example.org
Next connecting to the tunnel will actually connect to the second host, machine2.
$ ssh -p 2222 remoteuser@localhost
Another way is to use ProxyCommand in the configuration, either in the ~/.ssh/config file or in the runtime arguments.
$ ssh -o 'ProxyCommand ssh %h nc machine2.example.org 22' -o 'HostKeyAlias machine2.example.org' machine3.example.org
 
  


Reply


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
iptables: accept all dest ports algernon_z Linux - Security 2 08-18-2011 10:55 AM
IPTraf : ICMP dest unrch ali09 Linux - Networking 1 11-13-2010 03:39 AM
log source and dest cyb0rg777 Linux - Security 1 11-02-2006 09:28 AM
How to hide or unexpose source codes. SPo2 Linux - General 8 01-28-2006 02:21 PM
Dest Unreachable with PPP csb Linux - Networking 4 07-31-2005 07:36 AM


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