LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   SSH tunneling connection fails (http://www.linuxquestions.org/questions/ubuntu-63/ssh-tunneling-connection-fails-897546/)

morningsunshine 08-16-2011 02:21 AM

SSH tunneling connection fails
 
Hi friends,

My sys admin has set up ssh tunneling in our network. I am facing an issue with ssh tunneling connection and he has refused any help.

There are 2 servers on which he has configured access through ssh tunnels.

A. server1 -> jump pad
B. server2

I have to reach server2 via server1. On my ubuntu system, this is my .ssh/config file -
Code:

host server1
        Hostname server1.company.org
        ForwardX11 yes
        ForwardAgent yes
        TCPKeepAlive yes

host server2
        Hostname server1.company.org
        TCPKeepAlive yes
        User sunshine
        IdentityFile ~/.ssh/
#      Application access
        LocalForward localhost:10000 192.168.1.10:10000

192.168.1.10 -> server2 IP

I login as root and I can ssh directly to server1 by
Code:

ssh sunshine@server1
And as per my sys admin, I should also be able to reach server2 by doing
Code:

http://localhost:10000
However, I can't reach server2.

I get this when trying
Code:

ssh sunshine@server2
->
Code:

Enter passphrase for key '/root/.ssh/':
Can someone please tell me if I need to configure something else at my system or if I am doing something wrong?

My admin is not helping and I need to correct this at my end.

Thanks much in advance.

acid_kewpie 08-17-2011 02:28 AM

IdentitiesFiles requires, as the name kinda implies, a file, not a directory, so ~/.ssh/id_dsa or such instead of just ~/.ssh


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