6

i am unable to access my droplet console in digital ocean ,it is giving a notification "enable the new Droplet Console for native-like terminal access to your Droplet from your browser." To enable the Droplet Console, log in to your Droplet as root or as a user with sudo access. Once connected, download and execute the agent installation script with the following command to enable the console immediately:

wget -qO- https://repos-droplet.digitalocean.com/install.sh | sudo bash

but i am having no access to its console so i have no idea where i can give this command, putty is also not giving any response. screenshot of the notification

DazWilkin
  • 32,823
  • 5
  • 47
  • 88
Sarosh Hassan
  • 59
  • 1
  • 1
  • 5

4 Answers4

5

TLDR; run it in the Recovery Console.

I know this is an old question but posting in case any one else lands here in a search.

Click the "Launch Recovery Console" button in the "Recovery Console" section of Droplet's Access page.

Sign in as root. If you don't know the password, use the "Reset root Password" button in the "Reset root password" section below.

paste the wget command you have there from the "Droplet Console" section and run it. It may take a bit.

When that completes, the first section "Droplet Console" should now update and have a button to "Launch Droplet Console"

You may need to log out of and back into Digital Ocean before the Droplet Console will launch successfully.

W_Mahoney
  • 61
  • 1
  • 3
3

It fixed itself for me in a day. Possibly, you need to logout/login. And also I've added 2FA to my account. After that actions I finally can use that feature.

Kirill Oficerov
  • 2,152
  • 2
  • 15
  • 11
2

Digital Ocean provides extensive documentation:

https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/putty/

Once you're ssh'd into the Droplet, you need to run that command.

Then:

https://docs.digitalocean.com/products/droplets/how-to/connect-with-console/

DazWilkin
  • 32,823
  • 5
  • 47
  • 88
  • This doesn't answer the question, but it's helpful for anyone that's using the droplet console. The droplet console is difficult to use in production. It can't scroll through its output, its window size is small, and doesn't expand when maximized, and it incorrectly formats pasted text. – david-littlefield Jan 28 '22 at 23:52
  • Instead, use Visual Studio Code. You can create, open, edit, and transfer files on the virtual machine from within the code editor like you would on your regular computer. You can run commands on multiple terminal applications in parallel. It also doesn't have any of the limitations that the web-based terminal application had. – david-littlefield Jan 28 '22 at 23:52
  • Link to tutorial: https://medium.com/p/44afcc954d38 – david-littlefield Jan 28 '22 at 23:53
1

You are unable to connect to the console because by mistake you started the ufw without allowing ssh

To get console back: Step 1: Go to Launch Recovery Console

enter image description here

Step 2: after logging in run: ufw allow ssh

Step 3: you will see something like:

enter image description here

Step 4: Try to login with SSH, it will be successful!

Parth Developer
  • 1,371
  • 1
  • 13
  • 30
  • thanks for your answer, although the issue I found was that the server went to panic mode so I recovered my files by getting into recovery mode – Sarosh Hassan Jun 09 '23 at 11:58