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 JSch Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JSch" Watch "JSch" New topic
Author

JSch

Shikha Upadhyaya
Ranch Hand

Joined: Aug 17, 2011
Posts: 70

Hi,
Can anyone help me trace where the actual password authentication is done in this code?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
I'm not quite sure what you're asking, but the actual check most likely occurs during the "session.connect()" call. It wouldn't make sense to proceed after that if the credentials were incorrect. You can test that by providing incorrect credentials, and then to see what happens - meaning, in which line of code you're getting an exception.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSch
 
Similar Threads
List Files of Remote Directory
Connecting to Remote Unix Host from JAVA
Open source ssh library for java?
Moving files from server A to server B using JSch
connect unix from windows java program