Generating private key

Hi Experts,
can someone explain the procedure for generating certificates.

I am new to this I want to Generating private key for SFTP connection, i have a file that has a *.asc extension and i want to generate to private key and send it to third party.

Thank you,
SR ZakNetwork Solutions Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Same as for ssh... Something like...

ssh-keygen -q -N 'random-passphrase-here' -b 2048 -t rsa -f ~/.ssh/transfer.rsa -C 'File Transfer Key'

Open in new window

Unlikely a *.asc file will be useful, unless it's named completely wrong + it's really a key.

The above command will generate a public + private key.

You must arrange to upload the public key into ~$user/.ssh/authorized_keys file for the user your targeting with your sftp command...

Or, you can just let SFTP handle all this + use no key. In this case, you'll just set a password + SFTP will manage the secure login based on user/pass, rather than key file.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
If you're new to setting up SFTP, I strongly suggest running MySecureShell, which provides a zero config SFTP server... which... works like you imagine an SFTP server should work.

Most SFTP servers are complex to setup + maintain.

MySecureShell is just install + you're done.

There are packages for MySecureShell on every sensible Linux Distro.
SR ZakNetwork Solutions Author Commented:
Thank you for the detailed information

The vendor I plan to connect to is requesting PGP public Key, what is the extension of this file ? and is that generated from the asc file they sent me.
Why is the vendor sending me a asc file,does this mean that public key was already sent out. sorry , i just took over this from someone who left and i am not sure what he did.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.