Enter file in which to save the key (/(略)/.ssh/id_ed25519): ←とりあえず空欄にして Enter passphrase for "/(略)/.ssh/id_ed25519" (empty for no passphrase): ←パスワード Enter same passphrase again: ←パスワード(再入力) Your identification has been saved in /(略)/.ssh/id_ed25519 Your public key has been saved in /(略)/.ssh/id_ed25519.pub The key fingerprint is: (略)
Enter file in which to save the key (/(略)/.ssh/id_ed25519): ←とりあえず空欄にして Enter passphrase for "/(略)/.ssh/id_ed25519" (empty for no passphrase): ←パスワード Enter same passphrase again: ←パスワード(再入力) Your identification has been saved in /(略)/.ssh/id_ed25519 Your public key has been saved in /(略)/.ssh/id_ed25519.pub The key fingerprint is: (略) • /(略)/.ssh/id_ed25519 に秘密鍵がある • /(略)/.ssh/id_ed25519.pub に公開鍵がある
Key type は Authentication Key を選択 • Key には公開鍵をコピペ 以下のように接続確認できる $ ssh -T [email protected] Enter passphrase for key '/(略)/.ssh/id_ed25519': ←パスワード入力 Hi Yukkku! You've successfully authenticated, but GitHub does not provide shell access.
status On branch main No commits yet Changes to be committed: (use "git rm --cached <file>..." to unstage) new file: main.cpp Untracked files: (use "git add <file>..." to include in what will be committed) a.out
pull Enter passphrase for key '/(略)/.ssh/id_ed25519': (略) From github.com:Yukkku/procon36-ube * [new branch] main -> origin/main # 反映されているか確認 $ ls main.cpp
pull Enter passphrase for key '/(略)/.ssh/id_ed25519': (略) From github.com:Yukkku/procon36-ube * [new branch] main -> origin/main # 反映されているか確認 $ ls main.cpp push/pull はこまめにしましょう