LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   Hide IP of source on Dest. (http://www.linuxquestions.org/questions/linux-security-4/hide-ip-of-source-on-dest-4175430650/)

linux2man 10-05-2012 05:07 AM

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

arun5002 10-05-2012 05:47 AM

Hi

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

http://www.linuxquestions.org/questi...ng-4175429216/

Turbocapitalist 10-05-2012 06:38 AM

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


All times are GMT -5. The time now is 02:52 PM.