< ページ移動: 1 2 >
git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/main:refs/heads/mainPushing to ssh://github.com/XXXXXXX/sXXXXXXX.gitgit@github.com: Permission denied (publickey).fatal: Could not read from remote repository.
※ GitHub に登録しているメールアドレスで作成※ ディフォルトの名前を変更して作成(ケツに GitHub と付ける)
% ssh-keygen -t ed25519 -C "hogehoge@exsample.com"Generating public/private ed25519 key pair.Enter file in which to save the key (/Users/hogehoge/.ssh/id_ed25519): /Users/hogehoge/.ssh/id_ed25519_GitHubEnter passphrase (empty for no passphrase): <パスフレーズ>Enter same passphrase again: <パスフレーズ>Your identification has been saved in /Users/hogehoge/.ssh/id_ed25519_GitHubYour public key has been saved in /Users/hogehoge/.ssh/id_ed25519_GitHub.pubThe key fingerprint is:SHA256:oKy<略>h4 hogehoge@exsample.comThe key's randomart image is:+--[ED25519 256]--+| .=.. || o.+ || . .=E || . . . ..++o. || + o S ..+.+ o|| o . + . = =+|| o . B.*||oo. . + X+||*=. . =o=|+----[SHA256]-----+
% eval "$(ssh-agent -s)"Agent pid 6763
% open ~/.ssh/configThe file /Users/hogehoge/.ssh/config does not exist.
存在していないので空ファイルを作成% touch ~/.ssh/config