Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save atsuteru/6396951 to your computer and use it in GitHub Desktop.
Save atsuteru/6396951 to your computer and use it in GitHub Desktop.
Windows7/8でGithubにssh接続できないときにやること

Windows7/8でGithubにssh接続できないときにやること

ポイント

  • 秘密鍵を ssh-add してやると通るようになった。

##手順

1. ssh-addを使えるようにする⇒「%USERPROFILE%.bashrc」ファイルを作成し、以下を記述する。

#! /bin/bash 
eval `ssh-agent -s` 
ssh-add

2. Git Bashを起動(再起動)する。

3. Git Bashでssh-addコマンドを秘密鍵に対して実行する

cd ~
ssh-add .ssh/id_rsa

参考

http://stackoverflow.com/questions/4083079/how-to-run-git-ssh-authentication-agent http://nakaji.hatenablog.com/entry/20120822/1345642515

以上。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment