Vagrant ssh连接到主机127.0.0.1:2222端口22:文件号错误 [英] Vagrant ssh connect to host 127.0.0.1:2222 port 22: Bad file number

查看:698
本文介绍了Vagrant ssh连接到主机127.0.0.1:2222端口22:文件号错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试连接到本地Vagrant时,从Windows git bash运行ssh vagrant@127.0.0.1:2222时都会出现此错误:

Whenever I try to connect to my local Vagrant, I get this error when I run ssh vagrant@127.0.0.1:2222 from the Windows git bash:

ssh: connect to host 127.0.0.1:2222 port 22: Bad file number

它以前工作正常,所以我不确定是什么原因引起的.当我尝试在PHPStorm 8中建立SFTP连接时,出现此错误:

It was working previously, so I'm not sure what could have caused this. When I try to do an SFTP connection in PHPStorm 8, I get this error:

Connection to '127.0.0.1' failed.
SSH_MSG_DISCONNECT: 2 Too many authentication failures for vagrant 

我曾尝试将vagrant destroyvagrant box remove laravel/homestead结合使用,然后从以前使用vagrant box add laravel/homestead homestead.box进行备份的备份中重新创建该框,但仍然遇到相同的错误.

I've tried vagrant destroy with vagrant box remove laravel/homestead and then recreating the box from a backup I had that previously worked using vagrant box add laravel/homestead homestead.box but I still get the same errors.

我在Windows 7上.

I'm on Windows 7.

我该怎么做才能再次访问我的无业游民框命令行?

What can I do to get access to my vagrant box commandline again?

推荐答案

确保您的游民已通过命令启动并运行:游民已

Make sure your vagrant is up and running by command : vagrant up

,然后执行 vagrant ssh .它将连接到无业游民的本地主机

and then do vagrant ssh. It will connect to vagrant localhost

这篇关于Vagrant ssh连接到主机127.0.0.1:2222端口22:文件号错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆