Files
3engines_doc/docs/networking/How-to-add-SSH-key-from-Horizon-web-console-on-3Engines-Cloud.html.md
2025-06-19 20:19:21 +05:30

41 lines
1.5 KiB
Markdown

How to add SSH key from Horizon web console on 3Engines Cloud[🔗](#how-to-add-ssh-key-from-horizon-web-console-on-brand-name "Permalink to this headline")
===========================================================================================================================================================
While using web console on your VM, you may face situation when you will have to enter SSH public key.
Unfortunately, copy/paste functionality in not supported by our console. For adding a key to an existing instance, the easiest method would be getting the key via curl.
For instance you may go to <https://pastebin.com/> and put your public key there (you can set if and how long content is visible to others and so on)
![pastebin1.png](../_images/pastebin1.png)
copy URL of raw pastebin content (for obtaining a raw content, click on “Raw” icon),
![pastebin2.png](../_images/pastebin2.png)
![pastebin3.png](../_images/pastebin3.png)
and issue the command from inside of instance:
```
curl <pastebin url here> > mykey.txt
```
![pastebin4.png](../_images/pastebin4.png)
After downloading the file, you may check if your key is saved correctly using cat command:
```
cat mykey.txt
```
![pastebin5.png](../_images/pastebin5.png)
Please note that the key must be put into /home/eouser/.ssh/authorized\_keys, because you can ssh to your instance as eouser, but not as eoconsole. So once you are eoconsole user and get the key as described above, you should use:
```
cat mykey.txt | sudo tee -a /home/eouser/.ssh/authorized_keys
```