Multiple public keys - WeOnlyDo Discussion board

Multiple public keys (wodFtpDLX / wodFtpDLX.NET)

by Scotstyer, Wednesday, November 02, 2011, 19:34 (4559 days ago)

we have a client with multiple locations
where they would be transmitting files.
They are wanting to have a single login
but... each location to have their own public key
How would I go about this?
They are suggesting... that when the key is created
at the site... that it be added to the .ssh file
at the host.
to send the key, we would use login / password
Would I need to copy the .ssh file down from the host
create the public key...
and, then move the file back up to the host
When you do a generation of a key... does it keep each key that was generated in the file?

Re: Multiple public keys

by woddrazen, Wednesday, November 02, 2011, 19:43 (4559 days ago) @ Scotstyer

Hi,


You can generate keys using wodCertificate component. wodCertificate component is part of wodFtpDLX ActiveX component.

You need to upload somehow public key to your server. Usually public key should be located in users .ssh folder in authorized_keys file. Format of public key in this case should be OpenSSH.

So you can connect to your server with login and password and upload public key. Same as you upload some other file. Then after that you don't need use login and password authentication. You can use public key authentication.

You can save your private and public key inside a file and use it like that.

Here is example how to use wodCertificate to generate and save private and public key:
http://www.weonlydo.com/index.asp?kb=1&View=entry&EntryID=51

Let us know how it goes.


Regards,
Drazen

Re: Multiple public keys

by Scotstyer, Wednesday, November 02, 2011, 19:48 (4559 days ago) @ woddrazen

Hi,


You can generate keys using wodCertificate component. wodCertificate component is part of wodFtpDLX ActiveX component.

You need to upload somehow public key to your server. Usually public key should be located in users .ssh folder in authorized_keys file. Format of public key in this case should be OpenSSH.

So you can connect to your server with login and password and upload public key. Same as you upload some other file. Then after that you don't need use login and password authentication. You can use public key authentication.

You can save your private and public key inside a file and use it like that.

Here is example how to use wodCertificate to generate and save private and public key:
http://www.weonlydo.com/index.asp?kb=1&View=entry&EntryID=51

Let us know how it goes.


Regards,
Drazen

Yes.. but.. if I have 2 different locations
that use the same login
and, I upload the public key
won't it overwrite the one, that was there....
that had been uploaded by another location?
if that's so..
I'd have to upload the key Every time
which is kind of counter productive

Re: Multiple public keys

by woddrazen, Wednesday, November 02, 2011, 19:56 (4559 days ago) @ Scotstyer

Hi,


So you want to have multiple private keys you want to use to connect to same server?


Drazen

Re: Multiple public keys

by scotstyer, Wednesday, November 02, 2011, 19:59 (4559 days ago) @ woddrazen

Hi,


So you want to have multiple private keys you want to use to connect to same server?


Drazen

yes... say.. I have a location 1.. that uses login district1
use a different public key
than.. location 2 that uses that same district1 login
but.. have a different public key
is that possible?
if both keys were in the .ssh file to start with.. I would think so
but... if they keys are transmitted from the individual locations
I would think it would overwrite the key that exists on the host

Re: Multiple public keys

by woddrazen, Wednesday, November 02, 2011, 20:28 (4558 days ago) @ scotstyer

Hi,


You can upload multiple public keys inside authorized_keys file.

If you want you can use wodFtpDLX AppendFile Method and append public key to authorized_keys file.

More help for AppendFile Method you can find here:
http://www.weonlydo.com/FtpDLX/Help/wodFtpDLX-AppendFile.html


Drazen