File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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
Ranch Hand

Joined: Aug 27, 2012
Posts: 1035
    
  10

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!

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SFTP Timeout Error
 
Similar Threads
using FTP view client machine files
JSCH : dos2unix command not working
com.jcraft.jsch.JSchException: connection is closed by foreign host
File Upload Error - Using JSCH/SFTP
FTP with sun.net.ftp.