2017年5月27日土曜日

ssh github

by Sky Eckstrom

ssh github

~ $ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/xxxxx/.ssh/id_rsa): 
/Users/xxxxx/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /Users/xxxxx/.ssh/id_rsa.
Your public key has been saved in /Users/xxxxx/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The key's randomart image is:
+---[RSA 2048]----+
|xxxxxxx          |
|xxxxxxx          |
|xxxxxxx          |
|xxxxxxx          |
|xxxxxxx          |
|xxxxxxx          |
|xxxxxxx          |
+----[SHA256]-----+
~ $ cd .ssh
.ssh $ vi config

(ここで config を編集します)

(githubに鍵を設定します)
SSH認証キーをGitHubへ設定する。(Mac用)- qiita

(↓接続確認します)
.ssh $ ssh github
The authenticity of host 'github.com (192.30.255.112)' can't be established.
RSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.255.112' (RSA) to the list of known hosts.
PTY allocation request failed on channel 0
Hi xxxxx! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.


0 件のコメント:

コメントを投稿