Onga inc

subtitle

git

バーチャルボックス上のCentOsでgithubに接続する

1
2
3
cat ~/.ssh/id_rsa.pub

};

gitへの接続をsshで確認してみる。

1
ssh -l git -i ~/.ssh/id_rsa github.com

エラー

1
ssh: Could not resolve hostname github.com: Temporary failure in name resolution

そもそも、外部ネットワークに繋がっているのか、?
バーチャルボックのネットワークの接続をブリッジ設定に変更。

1
2
ping yahoo.co.jp
ping: unknown host yahoo.co.jp

gitの接続に成功した場合のメッセージ。

1
2
3
4
5
6
Warning: Permanently added the RSA host key
for IP address '192.30.252.128' to the list of known hosts.
PTY allocation request failed on channel 0
Hi ***! Youve successfully authenticated,
but GitHub does not provide shell access.
Connection to github.com closed.
1
2
3
git status
On branch feature/***
git pull git@github.com:tkc/naotomi.git feature/iijima

git fetch実行

1
git fetch --all && git reset --hard origin/feature/*** && composer dump-autoload

Onga

A designer, developer and entrepreneur. Spends his time travelling the world with a bag of kites. Likes journalism and publishing platforms.

Comments