# Connecting to a Linux server by SSH Client

* After successfully initialized, the information of vServer will be displayed on Portal GreenNode.
* If the Status section is Active, vServer is ready to use
* Check your email, for vServer connection information

*Note: This information is confidential and only sent to registered email. GreenNode cannot intervene to recover vServer's login information (username / password / key) in all situations*

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddavaa024d8f1fb723f589aac3af973e80cf.png?version=1&#x26;modificationDate=1684739768000&#x26;api=v2" alt=""><figcaption></figcaption></figure>

### **For Client under Linux operating system:** <a href="#id-1.sshlogintoserverlinuxhcm03-forclientunderlinuxoperatingsystem" id="id-1.sshlogintoserverlinuxhcm03-forclientunderlinuxoperatingsystem"></a>

#### **Option 1:** **Login SSH with password** <a href="#id-1.sshlogintoserverlinuxhcm03-option1-loginsshwithpassword" id="id-1.sshlogintoserverlinuxhcm03-option1-loginsshwithpassword"></a>

**Step 1**: Use Linux Terminal to connect to vServer\
ssh -p 234 <stackops@61.28.233.113>\
**Step 2**: Change password for user stackops at first login

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddav645b0b160648aea1be9e857acd48b121.png?version=1&#x26;modificationDate=1684740307000&#x26;api=v2" alt=""><figcaption></figcaption></figure>

1. Enter the password of the user stackops with the content instancePassword in the email<br>
2. Re-enter the password of the user stackops with the content instancePassword in the email<br>
3. Enter new password for user stackops to use for login later<br>
4. Re-enter new password for user stackops to use for future login

**Step 3**: Reconnect to vServer

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddavc0518012f866015e758dd8f477be1ad5.png?version=1&#x26;modificationDate=1684740399000&#x26;api=v2" alt=""><figcaption></figcaption></figure>

#### **Option 2: Login SSH with SSH KEY** <a href="#id-1.sshlogintoserverlinuxhcm03-option2-loginsshwithsshkey" id="id-1.sshlogintoserverlinuxhcm03-option2-loginsshwithsshkey"></a>

*If you have already created an SSH Key Pair on VNGCLOUD portal (Click* [***here*** ](/vng-cloud-document/vserver/compute-hcm03-1a/security/ssh-key-key-pairs.md)*for instructions on creating SSH Keys) and have added SSH Key to vServer during initialization, you can do the following steps:*

**Step 1**: Use Linux Terminal to connect to vServer

ssh -i \~/Download/private\_key01.pem -p 234 <stackops@61.28.233.113>

**Step 2**: Change password for user stackops at first login

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddavab40475527cfecafa102351f46a7d4fb.png?version=1&#x26;modificationDate=1684740967000&#x26;api=v2" alt=""><figcaption></figcaption></figure>

1. Enter the password of the user stackops with the content instancePassword in the email<br>
2. Enter new password for user stackops to use for future login<br>
3. Re-enter new password for user stackops to use for login later

**Step 3**: Reconnect to vServer

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddav5d99c6c67278dedcb58856d15b62ba28.png?version=1&#x26;modificationDate=1684741027000&#x26;api=v2" alt=""><figcaption></figcaption></figure>

### **For Client under Windows operating system** <a href="#id-1.sshlogintoserverlinuxhcm03-forclientunderwindowsoperatingsystem" id="id-1.sshlogintoserverlinuxhcm03-forclientunderwindowsoperatingsystem"></a>

#### Option 1: Login SSH with password <a href="#id-1.sshlogintoserverlinuxhcm03-option1-loginsshwithpassword.1" id="id-1.sshlogintoserverlinuxhcm03-option1-loginsshwithpassword.1"></a>

**Step 1**: Use Windows' Putty to connect to vServer

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddav10df9d8abb709c3d868645d7e28adc11.png?version=1&#x26;modificationDate=1684741328000&#x26;api=v2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddav6e80b3ab1314c67cd1ef4c0274fc4e72.png?version=1&#x26;modificationDate=1684741357000&#x26;api=v2" alt=""><figcaption></figcaption></figure>

**Step 2**: Change password for user stackops at first login

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddavcbd733454b766bb045f267d2db1ce607.png?version=1&#x26;modificationDate=1684741418000&#x26;api=v2" alt=""><figcaption></figcaption></figure>

* Enter the password of the user stackops with the content instancePassword email<br>
* Re-enter the password of the user stackops with the content instancePassword email<br>
* Enter new password for user stackops to use for future login<br>
* Re-enter new password for user stackops to use for future login

**Step 3**: Reconnect to vServer

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddav8dafb46ee04530a331aeef5ac72047fa.png?version=1&#x26;modificationDate=1684741538000&#x26;api=v2" alt=""><figcaption></figcaption></figure>

1. Enter the new password changed in Step 2 for user stackops<br>
2. Type the command sudo -i or sudo su to have root execution rights on the Server

#### Option 2: Login SSH with SSH KEY <a href="#id-1.sshlogintoserverlinuxhcm03-option2-loginsshwithsshkey.1" id="id-1.sshlogintoserverlinuxhcm03-option2-loginsshwithsshkey.1"></a>

*If you have already created an SSH Key Pair on VNGCLOUD portal (Click* [***here*** ](/vng-cloud-document/vserver/compute-hcm03-1a/security/ssh-key-key-pairs.md)*for instructions on creating SSH Keys) and have added SSH Key to vServer during initialization, you can do the following steps:*

**Step 1**: Use putty-gen to convert downloaded file **key.pem** to file **key.ppk**

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddav7679555bfbb6439237fffdc106a76e2d.png?version=1&#x26;modificationDate=1684741860000&#x26;api=v2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddavd7e2274d07354de680f999a6452282ff.png?version=1&#x26;modificationDate=1684741860000&#x26;api=v2" alt=""><figcaption></figcaption></figure>

**Step 2:** Use Windows' Putty to connect to vServer, authen using the file **key.ppk** created above

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddav10df9d8abb709c3d868645d7e28adc11.png?version=1&#x26;modificationDate=1684741328000&#x26;api=v2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddav6e80b3ab1314c67cd1ef4c0274fc4e72.png?version=1&#x26;modificationDate=1684741357000&#x26;api=v2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddav579b9aebecec54acba532f22a56d9b6b.png?version=1&#x26;modificationDate=1684741920000&#x26;api=v2" alt=""><figcaption></figcaption></figure>

**Step 3:** Change password for user stackops at first login

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddavaeb40edb06de4e5e0a70690e24480fef.png?version=1&#x26;modificationDate=1684741950000&#x26;api=v2" alt=""><figcaption></figcaption></figure>

1. Enter the password of the user stackops with the content instancePassword email<br>
2. Enter new password for user stackops to use for future login<br>
3. Re-enter new password for user stackops to use for login later

**Step 4**: Reconnect to vServer

<figure><img src="https://docs.vngcloud.vn/download/attachments/59802359/worddavdf51b4ff159865c247926e017937ad93.png?version=1&#x26;modificationDate=1684742002000&#x26;api=v2" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.vngcloud.vn/vng-cloud-document/vserver/compute-hcm03-1a/instance/connect-to-virtual-server/1.-ssh-login-to-server-linux-hcm-03.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
