Re: Format of ssh private key - WeOnlyDo Discussion board

Re: Format of ssh private key (General questions)

by Marco, Tuesday, November 02, 2004, 11:42 (7117 days ago) @ wodSupport

Marco,

we have wodKeys component (shipped with wodSFTP) for dealing with keys. Call it's Generate method to create new keys.

Don't forget to upload public key to the server!

Regards.

Dear,

we have some problem to generate a key with wodssh C/C++ code.
You write us this VB code:

Private Sub Form_Load()
Dim K As Keys
Set K = New Keys
K.Load App.Path & id_dsa.txt

Dim b() As Byte
b = K.PrivateKeyData(DSAkey)
Open App.Path & keydata For Binary As #1 Len = 1
Dim i As Integer
Dim j As Integer
j = 1
For i = LBound(b) To UBound(b)
Put #1, j, b(i)
j = j + 1
Next i
Close #1
End Sub

we can't use the key from file (in your example id_dsa.txt) because of security problem and we need to use it from mysql db.
Is there a way to create a correct key to load manually to mysql db?

thanks


Complete thread: