Skip to main content

오류: ssh-add: 유효하지 않은 옵션 -- apple-use-keychain

이 오류는 ssh-add의 버전이 macOS 키 집합 통합을 지원하지 않음을 의미하므로 키 집합에 암호를 저장할 수 있습니다.

이 기사에서

The --apple-use-keychain option is in Apple's standard version of ssh-add, which stores the passphrase in your keychain for you when you add an ssh key to the ssh-agent. If you have installed a different version of ssh-add, it may lack support for --apple-use-keychain.

Solving the issue

To add your SSH private key to the ssh-agent, you can specify the path to the Apple version of ssh-add:

/usr/bin/ssh-add --apple-use-keychain ~/.ssh/id_ed25519

참고

  • The --apple-use-keychain option is in Apple's standard version of ssh-add. In macOS versions prior to Monterey (12.0), use -K instead of --apple-use-keychain.
  • If you created your key with a different name, or if you are adding an existing key that has a different name, replace id_ed25519 in the command with the name of your private key file.

Further reading