Private/Public Key Generation

0 votes
asked Aug 11, 2011 by petermodonnell (170 points)
edited Aug 12, 2011

We have a remote server (Server1), with a rebex based SFTP application installed on it. It needs to send files to a distant server (Server2).

Can I generate a public/private key pair (dsa) on my own PC, install the private key on Server1, and give the public key to the adminstrator of Server2?

Or must the key pair be generated on Server1?

Applies to: Rebex SFTP

1 Answer

0 votes
answered Aug 12, 2011 by Lukas Matyska (55,430 points)
edited Aug 12, 2011

Your assumption is correct. The public/private key pair can be generated on any PC.

If you want to be able to connect from the Server1 (client) to the Server2 (host) and use key-based login, you need to copy private key to the Server1 and public key to the Server2.

How to generate DSA public/private key pair is described e.g. here

commented Aug 12, 2011 by petermodonnell (170 points)
edited Aug 12, 2011

Thanks Lukas, the KeyGenerator the comes with the Rebex samples does the trick to :)

...