Files
3engines_doc/docs/networking/How-to-connect-to-your-virtual-machine-via-SSH-in-Linux-on-3Engines-Cloud.html.md
2025-06-19 20:19:21 +05:30

38 lines
1.9 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

How to connect to your virtual machine via SSH in Linux on 3Engines Cloud[🔗](#how-to-connect-to-your-virtual-machine-via-ssh-in-linux-on-brand-name "Permalink to this headline")
===================================================================================================================================================================================
**1. Prerequisites:**
1.1. Private and public keys have been created. The key files were saved on the local disk of the VM you wish to connect to. It is recommended to put the keys in the **~/.ssh** folder.
1.2. During the VM setup, the generated key we want to use was assigned.
For example, when you create an SSH key named “**testkey**” in the Horizon dashboard, its name will appear next to your VM.
![ssh_linux1.png](../_images/ssh_linux1.png)
**2. Connecting to a virtual machine via SSH:**
2.1. If your virtual machine has already been assigned a Floating IP (the instances menu next to your virtual machine lists the IP address) you can proceed to the next step. If not, please follow the guide: [How to Add or Remove Floating IPs to your VM on 3Engines Cloud](How-to-Add-or-Remove-Floating-IPs-to-your-VM-on-3Engines-Cloud.html.md).
2.2. Go to the **~/.ssh** folder where your SSH keys were saved to. Start your terminal (right click and click “Open in Terminal”).
2.3. Change the permissions of the private key file. In the case of the file named **id\_rsa**, type:
```
sudo chmod 600 id_rsa
```
Enter your password and confirm.
2.4. Once you have completed all of the steps above, you can log in. Let us assume that your generated and assigned Floating IP address in this case is **64.225.132.99**. Execute the following command in the terminal:
```
ssh [email protected]
```
2.5. The username in the terminal will change to **eouser**. This means that the SSH connection was successful.
![ssh_linux2.png](../_images/ssh_linux2.png)