Page 1 of 1

Importing public SSH key does not get listed correctly

Posted: Wed Oct 17, 2018 8:08 am
by azerx
Hello,

I have imported a OpenSSH public key under Key Vault with my account which has the correct access "Admin User with the Product Administrator and Key Manager roles".

But when i create a SFTP resource and want to use this key i can not find the key!
I do the following for the SFTP resource:
  • Key Location: Key Valut
    Key Vault: Default
    Key Name: <----- Here the key should appear i believe but sadly i cant find my imported key
Does anyone know why the key does not appear in the listed keys?
Appreciate any help / tips you can provide.

Re: Importing public SSH key does not get listed correctly

Posted: Wed Oct 31, 2018 10:58 am
by Support_Nolan
Hello,

The SSH server resource uses private keys to establish a connection. The reason you are not seeing the key after importing the key into the Key Store, is because the key you imported was a Private key that you imported as a Public Key.

If you create a SSH key pair in the Key Management System (KMS) you will see the public and private key. Since SSH protocol uses Asymmetric Cryptography, the host needs the public key and the client needs the private key. In this case, I believe you imported the key as a public key, but since you (the client) are connecting to a SSH server you need the private key.

Re: Importing public SSH key does not get listed correctly

Posted: Thu Nov 01, 2018 4:00 am
by azerx
Thanks you for the info. Yes you are correct i imported the key as public. Importing as private key solved it.
Cheers.