References Configure SSH
References
Pro Django - Tutorial 9 - CI/CD
Source Code: https://github.
https://www.youtube.com/watch?v=zCz6xEFqOXE
Configure SSH
On GitHub, go to “Settings → Secrets and Variables → Actions”, press “New repository secret” button.
Name variable SSH_PRIVATE_KEY
Cat private key (long) with cat /Users/hazadus/.ssh/github
or cat /Users/hazadus/.ssh/github | pbcopy
and paste into form “Secret” field.
SSH into the server.
Cat public key (short), copy into clipboard using cat /Users/hazadus/.ssh/github.pub | pbcopy
Via SSH open nano ~/.ssh/authorized_keys
Paste new key below existing one.
On GitHub, create new secret SSH_HOST
with server IP and SSH_USER
with username.
📂 DevOps | Последнее изменение: 07.02.2024 14:50