Skip to content

Instantly share code, notes, and snippets.

@0test
Last active January 18, 2024 20:06
Show Gist options
  • Save 0test/296fd717fd25aaa856b46a4a55ca3767 to your computer and use it in GitHub Desktop.
Save 0test/296fd717fd25aaa856b46a4a55ca3767 to your computer and use it in GitHub Desktop.
ssh-keygen -t rsa -b 4096 -C "[email protected]" с твоей почтой для гита
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
cat ~/.ssh/id_rsa >> ~/.ssh/authorized_keys
ssh -T [email protected] тестим коннект
На бегете ещё можно
GIT_SSH_COMMAND="ssh -i ~/.ssh/company" git clone
Команды гита
git clone URL .
и
git pull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment