0
0

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.

[ssh] vs codeのRemote Developmentでpass phraseをスキップ

Last updated at Posted at 2020-04-01

環境

macOS Sierra

実現したいこと

ssh接続するたびにpass phrase聞かれるのやめたい。
ssh-addの場合、コマンドからssh接続するならその方法で省略できたが、
Remote Developmentからでは当然意味なかった。
vs codeというワードと共に一緒にググってもなかなか出てこなかった。

流れ

1.公開鍵と秘密鍵をそれぞれ生成する。
2.configファイルには、HostNameにはホスト名入れたりIdentityFileには秘密鍵のパスを指定すればとりあえずssh接続できる状態にはなる。が、このままだと秘密鍵にpass phraseが設定されている場合、毎回入力しなきゃいけない。非常に面倒。セキュリティ的に正しくても正直面倒。
3. configファイルに、「AddKeysToAgent yes」を追記。

これで、うまく行った。

感想

コーディングしていて楽しいのはAtomだが、便利さで選ばれたのはvs codeでした。
macOSならもうpass phraseを入力することは無くなったけどwindowsだけ何故か効果ない感じ??

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?