[JSch-users] newbie question : how to generate keys and required files when not deep java user ?
Status: Alpha
Brought to you by:
ymnk
From: Marc P. <mar...@wa...> - 2004-03-08 19:10:01
|
newbie question : How-to use it with ant ? from a windows XP workstation to a linux server with sshd, trying to establish a scp connection with ANT - when trying this solution : <scp todir="user:UserName@MyServer:/xx" password="XXXX"> < fileset dir=build/> </scp> ANT tells me : com.jcraft.jsch.JSchException: reject HostKey I really don't know how I could fill a knowhosts file with required info. and when trying this one: (after having generated a DSA key pair with putty-gen, and copied it on the file /home/UserName/.ssh/authorized_keys on the server) <scp todir="user:UserName@MyServer:/xx" keyfile="PuttyGen_generated_key_file.ppk" passphrase="mySecretPassPhrase"> < fileset dir=build/> </scp> ANT tells : com.jcraft.jsch.JSchException: invaid privatekey : PuttyGen_generated_key_file.ppk what should I do and wich tools should I use to establish this conne |