Первоначальная настройка сервера

content
ssh root@your_server_ip 
adduser abuser 
usermod -aG sudo abuser 
exit 
ssh-keygen(Сгенерить на локальной машине) 
ssh-copy-id username@remote_host 
sudo nano /etc/ssh/sshd_config ---> PasswordAuthentication no 
sudo systemctl restart ssh
sudo apt update && sudo apt upgrade 
sudo apt install mc nginx
cd ~ NODEJS curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - 
sudo apt-get install -y nodejs ##
Run `sudo apt-get install -y nodejs` to install Node.js 16.x and npm ##
You may also need development tools to build native addons: sudo apt-get install gcc g++ make ## 
To install the Yarn package manager, 
run: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list 
sudo apt-get update && sudo apt-get install yarn DOCKER https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository 
sudo npm install pm2 -g