You are not logged in.

#1 2017-11-08 09:06:55

nzdave
Member
From: Wellington, New Zealand
Registered: 2014-05-06
Posts: 7

Unable to connect to archlinux/archlinux vagrant box from archlinux

Hi, wasnt really sure which this issue fitted under best, feel free to move it if its in the wrong spot.

vagrant 2.0.0-2
libvirt 3.9.0-1

vagrant plugin list
vagrant-libvirt (0.0.40)

Vagrantfile:
Vagrant.configure("2") do |config|
  config.vm.box = "archlinux/archlinux"
end

I have followed the instructions here:
https://wiki.archlinux.org/index.php/Va … nt-libvirt
and run the reinstall-vagrant-libvirt.sh
I can vagrant up with the centos/7 box and it works fine, so vagrant appears to be working fine.

With VAGRANT_LOG=debug set while running the vagrant up, I can see this message over and over again:
---
DEBUG ssh: == Net-SSH connection debug-level log END ==
INFO ssh: SSH not up: #<Vagrant::Errors::NetSSHException: An error occurred in the underlying SSH library that Vagrant uses.
The error message is shown below. In many cases, errors from this
library are caused by ssh-agent issues. Try disabling your SSH
agent or removing some keys and try again.

If the problem persists, please report a bug to the net-ssh project.

could not verify server signature>
---

Im not using ssh agent, and I have tried moving my whole .ssh dir sideways in case my personal private key was getting in the way some how.

I can manually ssh on to the vagrant box successfully with
ssh -i ~/.vagrant.d/insecure_private_key vagrant@192.168.121.15

This made me think it was a net-ssh gem issue, so i tried upgrading net-ssh with the following
export PATH=/opt/vagrant/embedded/bin:$PATH
export GEM_HOME=~/.vagrant.d/gems/2.3.4
export GEM_PATH=$GEM_HOME:/opt/vagrant/embedded/gems
gem update net-ssh

it installed 4.2.0 side by side, so im guessing it probably wont use that version as the 4.1.0 is installed in /opt/vagrant/embedded/gems/gems/net-ssh-4.1.0

The logs on the vagrant box are not super helpful
Without debug
Nov 08 08:52:46 archlinux sshd[14940]: Connection closed by 192.168.121.1 port 46078 [preauth]

With debug logging enabled
Nov 08 08:54:19 archlinux sshd[23460]: debug1: Forked child 25414.
Nov 08 08:54:19 archlinux sshd[25414]: debug1: Set /proc/self/oom_score_adj to 0
Nov 08 08:54:19 archlinux sshd[25414]: debug1: rexec start in 5 out 5 newsock 5 pipe 12 sock 13
Nov 08 08:54:19 archlinux sshd[25414]: debug1: inetd sockets after dupping: 3, 3
Nov 08 08:54:19 archlinux sshd[25414]: Connection from 192.168.121.1 port 46198 on 192.168.121.154 port 22
Nov 08 08:54:19 archlinux sshd[25414]: debug1: Client protocol version 2.0; client software version Ruby/Net::SSH_4.1.0 x86_64-linux
Nov 08 08:54:19 archlinux sshd[25414]: debug1: no match: Ruby/Net::SSH_4.1.0 x86_64-linux
Nov 08 08:54:19 archlinux sshd[25414]: debug1: Local version string SSH-2.0-OpenSSH_7.5
Nov 08 08:54:19 archlinux sshd[25414]: debug1: Enabling compatibility mode for protocol 2.0
Nov 08 08:54:19 archlinux sshd[25414]: debug1: permanently_set_uid: 99/99 [preauth]
Nov 08 08:54:19 archlinux sshd[25414]: debug1: list_hostkey_types: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
Nov 08 08:54:19 archlinux sshd[25151]: Connection closed by 192.168.121.1 port 46196 [preauth]
Nov 08 08:54:19 archlinux sshd[25414]: debug1: SSH2_MSG_KEXINIT sent [preauth]
Nov 08 08:54:19 archlinux sshd[25151]: debug1: do_cleanup [preauth]
Nov 08 08:54:19 archlinux sshd[25151]: debug1: monitor_read_log: child log fd closed
Nov 08 08:54:19 archlinux sshd[25151]: debug1: do_cleanup
Nov 08 08:54:19 archlinux sshd[25151]: debug1: Killing privsep child 25160
Nov 08 08:54:19 archlinux sshd[25414]: debug1: SSH2_MSG_KEXINIT received [preauth]
Nov 08 08:54:19 archlinux sshd[25414]: debug1: kex: algorithm: diffie-hellman-group14-sha1 [preauth]
Nov 08 08:54:19 archlinux sshd[25414]: debug1: kex: host key algorithm: ssh-rsa [preauth]
Nov 08 08:54:19 archlinux sshd[25414]: debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha1 compression: none [preauth]
Nov 08 08:54:19 archlinux sshd[25414]: debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha1 compression: none [preauth]
Nov 08 08:54:19 archlinux sshd[25414]: debug1: expecting SSH2_MSG_KEXDH_INIT [preauth]
Nov 08 08:54:20 archlinux sshd[25414]: debug1: rekey after 4294967296 blocks [preauth]
Nov 08 08:54:20 archlinux sshd[25414]: debug1: SSH2_MSG_NEWKEYS sent [preauth]
Nov 08 08:54:20 archlinux sshd[25414]: debug1: expecting SSH2_MSG_NEWKEYS [preauth]

Im not sure where to go from here. any help appreciated,

Offline

Board footer

Powered by FluxBB