9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

cygwinでssh接続

Last updated at Posted at 2014-10-13

割と沢山ある記事かもしれないけど,自分用にまとめ.
github等の各種サービスにsshで接続する際のまとめ.

まず,SSH キーを生成

:~/.ssh$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/art/.ssh/id_rsa): id_rsa_file_name
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
...

各種サービスにおいて,生成したSSHキー(public)を登録し,秘密鍵のパスフレーズ入力を省略するため,ssh-agentを登録.この時の注意点として,cygwinの場合

ssh-agent -s
ssh-add -l

ではなく,

eval `ssh-agent -s`
ssh-add -l

とすること.cygwinの設定し直し等で度々引っかかるので,備忘録として書きました.ここではメモ程度のため,理由等の詳細は,http://stackoverflow.com/questions/17846529/could-not-open-a-connection-to-your-authentication-agent を参照

9
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?