Skip to content

Instantly share code, notes, and snippets.

@Enity
Last active November 27, 2020 20:26
Show Gist options
  • Save Enity/1beb2fb9d001a21b51f8f45dea160b79 to your computer and use it in GitHub Desktop.
Save Enity/1beb2fb9d001a21b51f8f45dea160b79 to your computer and use it in GitHub Desktop.
VDS commands
# Создать юзера
useradd -m -d /home/enity enity
passwd enity
usermod -a -G sudo enity
# ssh
ssh-keygen -C "enity.w@gmail.com"
eval "$(ssh-agent -s)"
ssh-add -K ~/.ssh/id_rsa
# Докер
# https://docs.docker.com/engine/install/ubuntu/
# без рута https://docs.docker.com/engine/install/linux-postinstall/
sudo groupadd docker
sudo usermod -aG docker enity
sudo systemctl enable docker
# Туннель
ssh -L 8001:127.0.0.1:8001 -N enity@ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment