This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Java in General and the fly likes SFTP Timeout Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "SFTP Timeout Error " Watch "SFTP Timeout Error " New topic
Author

SFTP Timeout Error

vishal gaikwad
Greenhorn

Joined: Oct 01, 2011
Posts: 11
Hello friends I am using SFTP for some my project,But when I try to connec to server (SFTP) it gives timeout error.

I am also confused how to give Sourch path i.e. path of server where files are stored.


T Mishra
Ranch Hand

Joined: Apr 04, 2006
Posts: 108

Perhaps this may help somebody else.

I am also confused how to give Sourch path i.e. path of server where files are stored.

By default, the files get uploaded at the present working directory on the remote server.

Assuming the following folder structure on the remote server
/user/home/testDirectory/anotherTestDirectory

If your present working directory is /user/home, to upload a file at anotherTestDirectory you can do like this.



Thanks,
Tushar (SCJP 1.5)
Richard Tookey
Rancher

Joined: Aug 27, 2012
Posts: 1166
    
  17

I would be surprised if your home directory is "/Vishal" . It is more likely to be "/home/Vishal" but you need to talk to the system admin to be sure. Also, since you are logging on as Admin you need to ensure that user Admin has the rights to access your directory!

I do so hope that that IP is not publicly available and that (admin,Admin) is not a real account and password!

 
wood burning stoves
 
subject: SFTP Timeout Error
 
It's not a secret anymore!