# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |v|
v.name = "local_vm_100500"
v.memory = 2048
end
# Create a private network, which allows host-only access to the machine using a specific IP.
config.vm.network "private_network", ip: "192.168.128.56"
# Share an additional folder to the guest VM. The first argument is the path on the host to the actual folder.
# The second argument is the path on the guest to mount the folder.
config.vm.synced_folder ".", "/var/www/project", owner: "vagrant", group: "vagrant"
end
$ vagrant ssh -- -v
OpenSSH_7.5p1, OpenSSL 1.0.2k 26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 2222.
debug1: Connection established.
Could not create directory '/home/admin/.ssh'.
debug1: key_load_public: No such file or directory
debug1: identity file C:/Users/admin/.vagrant.d/insecure_private_key type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:/Users/admin/.vagrant.d/insecure_private_key-cert type -
1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.5
ssh_exchange_identification: read: Connection reset by peer
يجب أن يكون متصلاً بجهاز افتراضي عبر ssh
في التصحيح
هل يمكنك توفير ارتباط إلى جوهر إخراج التصحيح عند تشغيل vagrant ssh --debug
؟ شكرا لك!
مرحبًا ، لقد حللت هذه المشكلة عالميًا. لقد قمت بتثبيت Ubuntu والآن كل شيء يعمل بشكل جيد. لا أعرف لماذا ، بعد التحديث الأخير في Windows ، لا شيء يعمل بشكل جيد. لذلك في حالتي ، قمت بحل مشكلة إعادة تثبيت نظام التشغيل. = د
سأقوم بإغلاق هذه المشكلة لأنه تم إغلاقه لمدة _30 يومًا_ ⏳. يساعد هذا المشرفين لدينا في العثور على المشكلات النشطة والتركيز عليها.
إذا وجدت مشكلة تبدو مشابهة لهذا ، فالرجاء فتح مشكلة جديدة وإكمال نموذج المشكلة حتى نتمكن من الحصول على جميع التفاصيل اللازمة لإجراء مزيد من التحقيق.