SFTP public/private keys
Author
Discussion

boyse7en

Original Poster:

8,249 posts

196 months

Wednesday 5th September 2018
quotequote all
I've been asked to send some data securely to an organisation (its a mailing list database)

The recipients have sent instructions on how to send i to them by SFTP, but I am falling at the first hurdle.

"1. We use public key authentication to authenticate you, the client. You must therefore send to us, we suggest by email, the public part of the private/public key pair that you will use. We only support RSA and DSA keys.
2. We will then set up a user account with this key and supply the username to you."

I've tried googling how to do this, but to be honest the language used in any explanation is all a bit above my head.
I've downloaded a program called Cyberduck (I'm on a Mac) which will do the transfer element of the process, but I'm not at all sure how to generate or obtain a public/private key pair.
Anyone able to explain to an IT ignoramus how to do it?

Mr Pointy

13,447 posts

190 months

deckster

9,631 posts

286 months

Wednesday 5th September 2018
quotequote all
Is SFTP the only option? As you've found out, it's a bit of a faff to get it set up.

If it's a one-off transfer of a simple mailing list then surely just sticking it up on Box (other file hosting services are available) and sending them a secure link should be enough I'd have thought.

eltawater

3,554 posts

210 months

Thursday 6th September 2018
quotequote all
1. Open up the Terminal through Applications -> Utilities -> Terminal
2. Enter this command to start the key generation

ssh-keygen -t rsa


3. This process will generate two files: an id_rsa (private) and an id_rsa.pub (public) pair of files.
4. Send the id_rsa.pub to the organisation who have requested it
5. Use the id_rsa file with Cyberduck when trying to access the service you require as the jiggery pokery between Cyberduck and the organisation's SFTP service will confirm your identity (as only you should have the private key file).



Edited by eltawater on Thursday 6th September 08:15

boyse7en

Original Poster:

8,249 posts

196 months

Thursday 6th September 2018
quotequote all
eltawater said:
1. Open up the Terminal through Applications -> Utilities -> Terminal
2. Enter this command to start the key generation

ssh-keygen -t rsa


3. This process will generate two files: an id_rsa (private) and an id_rsa.pub (public) pair of files.
4. Send the id_rsa.pub to the organisation who have requested it
5. Use the id_rsa file with Cyberduck when trying to access the service you require as the jiggery pokery between Cyberduck and the organisation's SFTP service will confirm your identity (as only you should have the private key file).



Edited by eltawater on Thursday 6th September 08:15
Brilliant! Thanks very much.