LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-05-2012, 05:07 AM   #1
linux2man
Member
 
Registered: Oct 2006
Posts: 34

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, 05:47 AM   #2
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
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, 06:38 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,330
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
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



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

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

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