Re: [JSch-users] com.jcraft.jsch.JSchException: Auth fail
Status: Alpha
Brought to you by:
ymnk
From: Adam G. <ada...@re...> - 2006-07-25 17:22:13
|
Dean- Hmmm. That's odd.... Try breaking out the parameters in "todir," i.e., use the "password" attribute. Also try to just copy one file, ala: <scp file="myfile.txt" password="moo" todir="user@somehost:/home/chuck"/> If those don't work then I'm out of ideas....other than trying key-based authentication...but I've had mixed results with that too... Looking at my sshd_config file, a few other things: 1. Do you use PermitEmptyPasswords? Is your password empty? 2. You might also want to change the LogLevel to something more fine and then run the scp task to see if it's failing on the ssh side or the scp-task side. 3. sshd is runing on port 22, right? -adam Dean Pullen wrote: > Yes I definitely can SSH to the host using the username password combo > I'm using in the deploy script. > > My mistake about the colon, its a typo - it isn't actually there in > the file. > Its actually: > username:password@host:directory > > > On 7/25/06, Adam Gordon <ada...@re...> wrote: >> Dean- >> >> A couple of things I see right off the bat: >> >> 1. I believe the colon before "host" is out of place...should be >> after....along with a destination directory/path... >> >> Also, as a test, make sure you can ssh into "host" using the specified >> username and password as a sanity check. >> >> cheers, >> >> -Adam >> >> Dean Pullen wrote: >> > Here it is: >> > >> > <scp todir="username:password@:host" >> > trust="yes" >> > verbose="true"> >> > <fileset dir="temp/eardir"> >> > <include name="*.xml"/> >> > <include name="earname.ear"/> >> > </fileset> >> > </scp> >> > >> > Obviously I've replaced the original values. >> > >> > >> ------------------------------------------------------------------------- >> >> > Take Surveys. Earn Cash. Influence the Future of IT >> > Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> > opinions on IT & business topics through brief surveys -- and earn >> cash >> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> > _______________________________________________ >> > JSch-users mailing list >> > JSc...@li... >> > https://lists.sourceforge.net/lists/listinfo/jsch-users >> > >> >> ------------------------------------------------------------------------- >> >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys -- and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> _______________________________________________ >> JSch-users mailing list >> JSc...@li... >> https://lists.sourceforge.net/lists/listinfo/jsch-users >> |