0 votes
by (170 points)
edited

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
by (70.2k points)
edited

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

by (170 points)
edited

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

...