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?

vagrantで仮想環境を構築しVSCodeでSSH接続できないときの対処法

Last updated at Posted at 2025-02-10

VagrantでVirtualBoxの仮想環境を構築・起動している状態で、VSCodeから仮想環境にSSH接続を試行していると、以下のメッセージが表示されてダウンロードが終わらないで先に進めなくなる時があります。

SSH ホスト {ホスト名} を設定しています:VS Code Server をローカルでダウンロードしています

そんなときはまずコマンドプロンプト側で中に入ります。

vagrant ssh

そして、ダウンロード中のファイルを削除します。

rm -Rf ~/.vscode-server/

その後PC再起動を実施し、再度

vagrant up

からやり直してみてください。
これでだいたいうまくいきます。

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?