sudo htop
sudo apt update
sudo apt upgrade --yes
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
π€ Create a new user name admin and add home files and bash
useradd -m admin -s /bin/bash -g admin
π Add passwor to new user admin
passwd admin
π₯·π» Add sudo group
usermod -aG sudo admin
π Copy shh to login
rsync --archive --chown=admin:admin ~/.ssh /home/admin
β οΈ Delete user
userdel admin -r admin
π View passwords to user in the machine
cat /etc/passwd
ufw app list
Output Available applications: OpenSSH
ufw allow OpenSSH
ufw enable
ufw status
Output Status: active
To Action From
OpenSSH ALLOW Anywhere OpenSSH (v6) ALLOW Anywhere (v6)
π Copy public key ssh to server [-p] to port
ssh-copy-id [email protected]
πͺ€ Delete login to password
nano /etc/ssh/ssh_config
File ssh_config
PasswordAuthentication no
PermitEmptyPasswords no
PermitRootLogin no
sudo systemctl restart ssh
π File save public ssh rsa keys in /home/$USER/.ssh
π§ guardar credenciales
git config --global credential.helper store
git config --global credential.helper cache