--- title: "getRootPassword" slug: "cli-server-getrootpassword" tags: ["Server"] updated: 2026-09-17T10:08:35Z published: 2026-09-17T10:08:35Z canonical: "cli.ncloud-docs.com/cli-server-getrootpassword" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # getRootPassword ## Overview Searching a server root account passoword ## Description Search a root account password using private key on your server (VM). ## Request Parameters | Parameter Name | Requiredness | Type | Limitation | Description | | --- | --- | --- | --- | --- | | serverInstanceNo | Yes | String | | Server instance No. used for a search of root password | | privateKey | Yes | String | | Login key that you applied when creating a server (It receives the storage path.) Key values entered are not sent to the network. ex) file://directory1/directory2/*.pem ex) https://kr.objectstorage.ncloud.com/bucket/penguin.pem | ## Response Data Type - RootPassword type | RootPassword extends CommonResponse | | --- | | private String rootPassword; | ## Examples ### Request ``` ncloud server getRootPassword --serverInstanceNo 475081 --privateKey file:///C:/Users/Naver/.ncloud/penguin.pem ``` ``` ncloud server getRootPassword --serverInstanceNo 475081 --privateKey https://kr.objectstorage.ncloud.com/chungsoo/penguin.pem ``` ``` ncloud server getRootPassword --serverInstanceNo 475081 --privateKey "-----BEGIN RSA PRIVATE KEY----- MIIG5AIBAAKCAYEA1LgE/8sxb8ueSrwXzHp0vgrJHgNz+XwWpvQIK0Xx0j/5IWez ************************************************ ************************************************ +5/QANMPYF94e8xtIpblYh965zNGI0h5TzjR3QOX2qKSBsriQ0Xw+A== -----END RSA PRIVATE KEY-----" ``` ### Response ``` { "getRootPasswordResponse": { "requestId": "f76f5042-cd8f-4ad2-b2fe-be556bbb6bfb", "returnCode": 0, "returnMessage": "success", "rootPassword": "A7TFYc+hRy" } } ``` ``` f76f5042-cd8f-4ad2-b2fe-be556bbb6bfb 0 success A7TFYc+hRy ```