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 3 years have passed since last update.

Windowsでvagrant upが出来なかった

Posted at

前提

Windows10でHomesteadを使ってlaravel開発をしようとしている。

以下のサイトを参考にした。
Laravel開発のはじめかた Windows編 | Hypertext Candy

本題

git, vagrant, homesteadをインストールし、さあ仮想環境を起動しようと

```を実行。

すると、、、
```Check your Homestead.yaml (or Homestead.json) file, the path to your private key does not exist.```
というメッセージが。

# 解決
結局、以下の記事を参考にさせて頂き、解決しました。
[LaravelのHomestead設定 | BeCrazy](https://it.becrazy.jp/article/laravel-homestead-setting)
どうやらサーバーに接続するための鍵がないから作れってことみたい。

### 手順

1.必要なディレクトリを作る
```$mkdir %HOMEDRIVE%%HOMEPATH%\.ssh```

2.鍵を作る
```$ssh-keygen -t rsa -f %HOMEDRIVE%%HOMEPATH%\.ssh\id_rsa```

途中でパスワードの作成を求められるが、2回Enterキーだけを押して空のままでいい。


もう一度
```$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?