Last active
November 27, 2020 20:26
-
-
Save Enity/1beb2fb9d001a21b51f8f45dea160b79 to your computer and use it in GitHub Desktop.
VDS commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Создать юзера | |
useradd -m -d /home/enity enity | |
passwd enity | |
usermod -a -G sudo enity | |
# ssh | |
ssh-keygen -C "[email protected]" | |
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