问答 / 0 / 5 / 创建于 7年前
人呢?
同样的问题,不知道如何解决
@dolaxi@wolfsheep
~~~#/bin/bash echo "Homestead认证……" echo -n "login:" read name echo -n "password:" read -s passwd if [ $name = "shijf" -a $passwd = "123456" ];then echo "认证成功,正在打开虚拟机" cd ~/Homestead && vagrant up && atom ~/Code/larabbs/ && ssh -p 2222 vagrant@127.0.0.1 else echo "input is error!" fi echo "按任意键关闭虚拟机"; read a cd ~/Homestead && vagrant halt && exit
可以这样登陆 ssh vagrant@192.168.10.10 密码(默认):vagrant
@岁月是把@sayhe110 感谢回答,没力气折腾了,已转 laragon
我要举报该,理由是:
人呢?
同样的问题,不知道如何解决
@dolaxi
@wolfsheep
第一种办法,重新安装一下
第二种办法:在命令中 写上 ssh -p 2222 vagrant@127.0.0.1
第三种给你个小脚本:
可以这样登陆
ssh vagrant@192.168.10.10
密码(默认):vagrant
@岁月是把
@sayhe110
感谢回答,没力气折腾了,已转 laragon