Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 10-05-2012, 06:07 AM   #1
Registered: Oct 2006
Posts: 34

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

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

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

Rep: Reputation: Disabled

Yes,You can achieve these using Port Fowarding .Look after these link
Old 10-05-2012, 07:38 AM   #3
Senior Member
Registered: Apr 2005
Distribution: Ubuntu, Devuan, OpenBSD
Posts: 2,703
Blog Entries: 3

Rep: Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182
You can do that several ways. Here is one way using tunneling. First set up a tunnel:
$ ssh -L
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 22' -o 'HostKeyAlias'


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 > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration