File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes remote login issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "remote login issue" Watch "remote login issue" New topic

remote login issue

Mohtashim Shaikh
Ranch Hand

Joined: Jul 18, 2010
Posts: 43
We have a setup whereby we cannot login to ServerB directly by using putty.

We have to first login to ServerA by providing username and password and it somehow takes us to serverB and prompts for the password for my login id for ServerB. Providing the password again logs me onto ServerB where I have a script which I need to execute.

I wanted to automate the execution of script on ServerB from my local windows machine hence I wrote the below command.

This command logs me onto ServerA but does not take me to ServerB hence script is not found.

I cannot logon to serverB due to this hopping concept in place.

Kindly help me with some work around.

Note: ServerA and ServerB both are unix servers.
Pat Farrell

Joined: Aug 11, 2007
Posts: 4659

Try connecting from a non-windows box. OS-X or another Linux or even Unix.
They all have ssh clients you can use.

Try using something besides putty to see if it is a putty-specific problem.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Perhaps shh access has been restricted to specific hosts. Look at the /etc/hosts.allow and /etc/hosts.deny files on ServerB.

JBoss In Action
Pradeep Kumar
Ranch Hand

Joined: Sep 08, 2006
Posts: 108
My two cents on this. How is that you can login to ServerB from ServerA and not from your local windows machine.

To verify if the ServerB is accessible from your local windows machine try pinging the serverB from the cmd window. If you cannot ping then the serverB is not in the same network or domain.
To verify that the ports are open form your local windows machine try doing telnet to serverB from putty to port 22 which is the default port for ssh login. If you are not able to telnet to ServerB you cannot login to the remote machine.

Also are ServerA and your machine on the same domain? In case they are not in same domain, you need to use SSL VPN to connect to the ServerB from your local machine.

In case they are in the same domain, you need to see if there is any proxy required to login to ServerB from your local machine. Check with your system administrator for more details.

Hope this helps.


Thanks and Regards, Pradeep Kumar
SCJP 1.6, SCWCD 5.0
I agree. Here's the link:
subject: remote login issue
It's not a secret anymore!