Skip to content

Instantly share code, notes, and snippets.

@KarimullinArthur
Last active October 30, 2023 20:42
Show Gist options
  • Save KarimullinArthur/c068a08fe41b34d122385e8ebc601f1b to your computer and use it in GitHub Desktop.
Save KarimullinArthur/c068a08fe41b34d122385e8ebc601f1b to your computer and use it in GitHub Desktop.

Настраиваем сервер

SSH ключи

Копируем публчиный ключ на сервер:

ssh-copy-id server

Добавляем ключ в authorizedkeys, чтобы не вводить пароль:

sudo cat id_rsa.pub > authorized_keys~
ssh-copy-id adress

Создать юзера

Создаём юзера, хомяка для него и устанавливаем пароль

sudo useradd -s /bin/bash user
mkdir /home/user
sudo passwd user

Добавляем юзера в судо

sudo usermod -aG sudo user
sudo chown -R

Python

Poetry

Установка

curl -sSL https://install.python-poetry.org | python3 -

Переезд

ALTER DATABASE mydb OWNER TO admin;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment