importLoginKey
    • PDF

    importLoginKey

    • PDF

    Article summary

    Overview

    Creates a key that encrypts and decrypts a password with the login key when accessing a server instance (VM). You need to import a public key that you generated with ssh-keygen.

    Request

    Request parameters

    ParameterRequiredTypeLimitationsDescription
    keyNameYStringMin: 3, Max: 30Key name to create.
    If the key name already exists, an error occurs.
    publicKeyYStringPublic key to import.
    It is a public key generated with ssh-keygen -t rsa -C "my-key" -f ~/.ssh/my-key.

    Response

    Response body

    Examples

    Request example

    GET {SERVER_API_URL}/importLoginKey
    ?keyName=ncloudTest
    &publicKey=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCfE6pQTOpsdQNsFtZpIzqDMyb8gH2XUUGe+9s8b36OO0i1SXkO8+u3/4EXYdujjIH+EKb9LzMiAXOtEUX0hI+zAlJemE+sBKPTORBb+YjLvBYb99ts3pdd7x1S/dgksyxdC6ru8KNS7heU0fARZGhCXmzI9Z6PhSqFMNQcUq14UYLNHUJYshuqHv/sjCBt3QgpMLcaBmgl6TLfdq7ZW0G/iz6V1a2q200A+Fq8Yuc0JLz6Q/xQqWi1+ehKs5y3Ow3D08NLwj8Ay/7eIXqk40oo+GqkQSVWIFV3lzJXB4Po10ZRC67RdCnyf8fYbZYzYP6trr/hItvmXDryEKFUnJgZ
    

    Response example

    	<importLoginKeyResponse>
    		<requestId>7f7c33d6-ce42-40c0-81a8-7df102c71d41</requestId>
    		<returnCode>0</returnCode>
    		<returnMessage>success</returnMessage>
    		<totalRows>1</totalRows>
    		<loginKeyList>
    			<fingerprint>-</fingerprint>
    			<keyName>ncloudTest</keyName>
    			<createDate>2018-06-28T16:13:13+0900</createDate>
    		</loginKeyList>
    	</importLoginKeyResponse>
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.