<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">Le 05/08/2013 11:07, Reinier Olislagers
a écrit :<br>
</div>
<blockquote cite="mid:51FF6B4E.1080706@gmail.com" type="cite">
<pre wrap="">On 05/08/2013 10:11, Antonio Fortuny wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
Le 02/08/2013 17:22, Reinier Olislagers a écrit :
</pre>
<blockquote type="cite">
<pre wrap="">On 02/08/2013 17:02, Antonio Fortuny wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I've copied the example from the wiki as a second test.
I only set the pair login/password: same result as before (PAM
autentication failed).
Then I generated a pair of SSH2-rsa keys (1024) using puttygen and
assigned the PrivateKey property to the private key file generated.
Result is worse as an exception arises without explanation.
</pre>
</blockquote>
<pre wrap="">Read the wiki article. It should explain how to generate keys. The
format is not what you'd expect.
</pre>
</blockquote>
<pre wrap="">I have had a complete read of <a class="moz-txt-link-freetext" href="http://wiki.lazarus.freepascal.org/Synapse">http://wiki.lazarus.freepascal.org/Synapse</a>.
Maybe because it is monday morning, I haven't read any reference to how
to generate keys for SSH connection
</pre>
</blockquote>
<pre wrap="">
Mmmph - I have that Monday morning feeling, too.
The wiki article says:
"LibSSH2 library. Pascal bindings still in development, but you can use
a file with your private key (in OpenSSH format) to authenticate. "
but you tried that and it didn't work - you *did* export the puttygen
private key file in openssh format, not the default putty format!?
I thought I had an example with libssh2+certificate auth lying around
somewhere but apparently I haven't, so that's about all I can say, sorry.</pre>
</blockquote>
Aaaaaaaargh ! <span class="moz-smiley-s10"><span> >:o </span></span><br>
Definitely yes, IT IS monday morning. <br>
I've read this text, but because I'm focused on cryptolib
(ssl_cryptlib.pas and cryptlib.pas along with cl32.dll), I didn't
take care of the LibSSH2 as the cryptolib seems to take care of the
private key. In my mind the application has to play with a pair of
keys like I use to do between two Linux boxes, exchanging eachother
the gerated public key into the .ssh user's home folders. And yes, I
saved putty's keys in OpenSSH format. When generating the keys, as I
usually do with Linux boxes, I don't give a passphrase so I connect
immediately. I still give a pair username/password (appropriate to
the server into wich I want to connect.<br>
<big>BTW, isn't the public key used anymore ? As only the private
key is mentioned, I wonder what to do with the public one.<br>
<br>
Thanks anyway Reinier, I'll let you know if I succed to establish
a connection.<br>
<br>
Antonio.<br>
<br>
</big>
<blockquote cite="mid:51FF6B4E.1080706@gmail.com" type="cite">
<pre wrap="">
--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<table
style="font-family:'Calibri','sans-serif';font-size:8.0pt;color:#002f87;border:0;width:auto;">
<tbody>
<tr>
<td style="vertical-align:bottom;padding:40px 20px
25px;border-top:1pt solid #BFBFBF;"> <img alt="Sita
Software"
src="cid:part1.01030500.01070508@sitasoftware.lu"> </td>
</tr>
<tr>
<td style="vertical-align: top; padding: 5px 20px 0;"> <b>Antonio
Fortuny</b><br>
Senior Software engineer<br>
<br>
220, avenue de la Liberté<br>
L-4602 Niederkorn<br>
Tel.: +352 58 00 93 - 93<br>
<a style="color:#002f87;cursor:pointer;text-decoration:
none;" href="http://www.sitasoftware.lu">www.sitasoftware.lu</a><br>
</td>
</tr>
<tr>
<td style="padding:20px 20px 30px;border-bottom: 1pt solid
#BFBFBF;" align="right"> <img alt="Your IT Partner"
src="cid:part3.03000003.02030100@sitasoftware.lu"> </td>
</tr>
</tbody>
</table>
</div>
</body>
</html>