View the Account-level Public SSH Key

GET /api/v1.2/accounts/ssh_key

Use this API to view your account-level unique public SSH key. The API does not take any parameters and returns the public key component of your account-level unique SSH key pair.

Qubole generates a unique SSH public-private key pair for every new account. You must add the public key from this key pair to the authorized key file (~ec2-user/.ssh/authorized_keys) in your account’s bastion host. Qubole uses the private key to create an SSH tunnel to the bastion host.

This API allows you to obtain the public key for the account-level unique SSH key pair.


The API only returns the public key component of the key pair. As the private key is not visible to you (it is stored securely within the Qubole application), you cannot use this key pair to log in to the bastion host. You must additionally use a custom SSH key for the same.

If the unique SSH key feature is not enabled, the default Qubole public key is used to SSH into the bastion host. For more details, see Configuring a Cluster in a VPC with Public and Private Subnets (AWS).



Request API Syntax

curl -X GET -H "X-AUTH-TOKEN:$AUTH_TOKEN" -H "Content-Type:application/json" -H "Accept: application/json" \
"https://<QDS environment>/api/v1.2/accounts/ssh_key"


The above syntax uses the QDS environment as the placeholder. Qubole provides other endpoints to access QDS that are described in Supported Qubole Endpoints on Different Cloud Providers.

Sample API Request

Here is a sample request to see the account-level public SSH key of a QDS account in the environment.

curl -X GET -H "X-AUTH-TOKEN:$AUTH_TOKEN" -H "Content-Type:application/json" -H "Accept: application/json" \

Sample API Response

Here is a sample response.

{"status_code":200,"public_key":"<public key>"}