проблема с добавлением SSH ключа в github
GitHub обновили протокол безопасности, и поэтому мне пришлось переделывать мой SSH ключ, но после того, как я переделал мой SSH ключ как предлагал GitHub у меня вылезает такая ошибка:
/Users/nimaymac/.ssh/config: line 2: Bad configuration option: IgnoreUnknown
/Users/nimaymac/.ssh/config: line 3: Bad configuration option: AddKeysToAgent
/Users/nimaymac/.ssh/config: line 4: Bad configuration option: UseKeychain
/Users/nimaymac/.ssh/config: terminating, 3 bad configuration options
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Я пробовал убирать строчки, которые ему не нравились, но это приводило к этому:
ERROR: You're using an RSA key with SHA-1, which is no longer allowed. Please use a newer client or a different key type.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Можно ли это как то починить? Заранее спасибо! система: macos 10.10.5
как я переделывал ключ:
- ssh-keygen -t rsa -b 4096 -C "[email protected]"
- eval "$(ssh-agent -s)"
- open /Users/nimaymac/.ssh/config
4)записал в файл /Users/nimaymac/.ssh/config:
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile /Users/nimaymac/.ssh/id_rsa - ssh-add -K /Users/nimaymac/.ssh/id_rsa Такая инструкция была дана на гитхабе