vagrant up ubuntu-precise-64 notice git:command not found

时间:2015-05-18 03:14:34

标签: git vagrant

在启动步骤中,它会注意到:

==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Remote connection disconnect. Retrying...
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if its present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...

并且不能使用git。

可以使用vagrant ssh,但没有git&卷曲

1 个答案:

答案 0 :(得分:0)

这个问题有点不清楚。您是否尝试使用git一次ssh进入vagrant或者即使在vagrant之外git命令也会失败?对于前一种情况,您可能需要在vagrant图像中安装git(通过sshing到它然后运行sudo apt-get install git)。在后一种情况下,您可能需要生成密钥。请遵循本教程 https://help.github.com/articles/generating-ssh-keys/