First steps with Digital Ocean

Author
By Darío Rivera
Posted On in Digital Ocean

To start an SSH connection from any machine you must run the following command. Keep in mind that you must replace the displayed IP with the IP of your Droplet.

ssh root@203.0.113.0

If you have several SSH private keys, you must explicitly indicate the one you will use with the -i option.

ssh -i /path/to/private/key root@203.0.113.0

If you selected the SSH Keys authentication option when creating the Droplet, instead of the One-Time Password, you will not need to enter the password as your SSH public key is supposed to be authorized to access the server.

When entering the operating system of the droplet, the first thing you should do is update the list of packages available in the repositories.

[root@debian:~# sudo apt update

It usually happens, particularly with Debian 10.2 x64, that some locale variables are not configured. To verify this, you can run the following command.

[root@debian:~# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

As you can see in the output of this command, it is indicated that the LC_TYPE and LC_ALL variables are not properly configured. To fix this, you must execute the following command.

[root@debian:~# export LANGUAGE=en_US.UTF-8; export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; locale-gen en_US.UTF-8
[root@debian:~# dpkg-reconfigure locales

That's all for now. See you soon!


Acerca de Darío Rivera

Author

Application Architect at Elentra Corp . Quality developer and passionate learner with 10+ years of experience in web technologies. Creator of EasyHttp , an standard way to consume HTTP Clients.

LinkedIn Twitter Instagram

Sólo aquellos que han alcanzado el éxito saben que siempre estuvo a un paso del momento en que pensaron renunciar.