How to download my code

Hi – we have been abandoned by our developer and are stuck with digitalocean which is clearly an environment for techies – we’re not AT ALL. We want to access and download our code and have spent a couple of hours going round in circles trying to figure out things like SSH Keys and setting up consoles. At each step we hit a brick wall where an instruction requires technical knowledge and may as well have been in written in Klingon. Is there anyone out there who tells us how to access the code on our droplet? We have apple macs and we have filezilla installed. We’re super familiar with accessing servers via SFTP using and FTP client and the regular hostname / un / pwrd route but digitalocean is a whole new world full of wonder and bafflement! Please help. Thanks Martin

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello, @martinrDolphin

The error means that FileZilla tried all available authentication methods and have not succeeded. In your case, there was only public key authentication method available.

Here, you have two options, one would be to enable password authentication and the other would be to add your ssh key to your FileZilla application.

When logged into the recovery console you can enable the 'PasswordAuthentication` in order to access the droplet via ssh client or FileZilla using a password instead of the key.

You can enable PasswordAuthentication for your Droplet by modifying your /etc/ssh/sshd_config file. Once set to Yes restart the SSH service and connect via an SSH client for a more stable connection. You can then modify your ~/.ssh/authorized_keys file to add the appropriate public key.

To enable the PasswordAuthentication follow these steps:

  1. Login to the console on the DigitalOcean website.
  2. Type sudo nano /etc/ssh/sshd_config
  3. Change PasswordAuthentication from “no” to “yes” and save the file
  4. Open a terminal on your computer and type ssh username@[hostname or IP address] or if on a Windows box use PuTTY for password login making sure authentication parameters aren’t pointing to a private key
  5. Login with a password
  6. Type sudo nano ~/.ssh/authorized_keys
  7. Paste public key text here and save the file
  8. Type sudo nano /etc/ssh/sshd_config
  9. Change PasswordAuthentication from “yes” to “no” and save the file
  10. Log out and attempt to log back in (if using PuTTY make sure you set up auth parameters to point to your private key)

You can then upload the key using this command:

  1. ssh-copy-id -i ~/.ssh/YourKey user@droplet

Note that you need to enter the path to your actual ssh key.

Hope that this helps! Regards, Alex

Hello, @martinrDolphin

What I can recommend is to access the droplet via sFTP using a client like FileZilla and download the source code of your site/application.

If you have access to your account then you can easily connect to your droplet. You can also use the root username to connect and if you do not remember or have the password you can also reset it.

You can check the following articles in order to connect via sFTP.

Regards, Alex