Thanks Lucas, it seems you found an interesting point to investigate.Just for people who might end up in this thread, "jammy" is Ubuntu 22.04 and not Ubuntu 20.04.
To help us to narrow down the issue, I will not take short cut. I do not have 'ruby-net-ssh'. Should I install it?
$ dpkg -l | grep rubyii libruby2.7:amd64 2.7.0-5ubuntu1.7 amd64 Libraries necessary to run Ruby 2.7 ii libruby3.0:amd64 3.0.2-7ubuntu2.4 amd64 Libraries necessary to run Ruby 3.0 ii rake 13.0.6-2 all ruby make-like utility ii ruby 1:3.0~exp1 amd64 Interpreter of object-oriented scripting language Ruby (default version) ii ruby-dev:amd64 1:3.0~exp1 amd64 Header files for compiling extension modules for Ruby (default version) ii ruby-minitest 5.13.0-1 all Ruby test tools supporting TDD, BDD, mocking, and benchmarking ii ruby-net-telnet 0.1.1-2 all telnet client library ii ruby-power-assert 1.1.7-2 all library showing values of variables and method calls in an expression ii ruby-rubygems 3.3.5-2 all Package management framework for Ruby ii ruby-test-unit 3.3.9-1 all unit testing framework for Ruby ii ruby-xmlrpc 0.3.2-1ubuntu0.1 all XMLRPC library for Ruby ii ruby3.0 3.0.2-7ubuntu2.4 amd64 Interpreter of object-oriented scripting language Ruby ii ruby3.0-dev:amd64 3.0.2-7ubuntu2.4 amd64 Header files for compiling extension modules for the Ruby 3.0 ii ruby3.0-doc 3.0.2-7ubuntu2.4 all Documentation for Ruby 3.0 ii rubygems-integration 1.18 all integration of Debian Ruby packages with Rubygems
But you are right, here are the ruby-net-ssh versions available: $ sudo apt search ruby-net-ssh Sorting... Done Full Text Search... Done ruby-net-ssh/jammy-updates,jammy-updates 1:6.1.0-2ubuntu0.1 all Ruby implementation of the SSH protocol ruby-net-ssh-gateway/jammy,jammy 2.0.0-2 all Ruby library for tunneling connections to servers with ssh ruby-net-ssh-krb/jammy,jammy 0.4.0-1.1 all Kerberos support for ruby-net-ssh ruby-net-ssh-multi/jammy,jammy 1.2.1-3 all Ruby library for making multiple SSH connections to remote systems On 03.08.23 09:13, Lucas Nussbaum wrote:
Hi Olivier, On 27/07/23 at 15:08 +0200, Olivier MARTIN wrote:Hello, my host machine is x86_64 with Ubuntu 22.04.2 LTS and I am using Vagrant 2.2.9 (from Ubuntu APT reposiotory). I did not have any issue the VM box 'debian/bullseye64' but when replacing 'debian/bullseye64' by 'debian/bookworm64' I have the error 'Warning: Authentication failure. Retrying...'According to: $ rmadison -u ubuntu ruby-net-ssh ruby-net-ssh | 1:2.6.8-1 | trusty/universe | source, all ruby-net-ssh | 1:3.0.1-3 | xenial/universe | source, all ruby-net-ssh | 1:4.2.0-2ubuntu1 | bionic/universe | source, all ruby-net-ssh | 1:5.2.0-1 | focal/universe | source, all ruby-net-ssh | 1:6.1.0-2 | jammy/universe | source, all ruby-net-ssh | 1:6.1.0-2ubuntu0.1 | jammy-updates/universe | source, all ruby-net-ssh | 1:7.0.1-1 | kinetic/universe | source, all ruby-net-ssh | 1:7.0.1-1 | lunar/universe | source, all ruby-net-ssh | 1:7.0.1-1 | mantic/universe | source, all ruby-net-ssh | 1:7.2.0-1 | mantic-proposed/universe | source, all Ubuntu 20.04 "jammy" has ruby-net-ssh 6.1.0. That version is unable to connect to recent OpenSSH, as found in Debian bookworm. In Debian bullseye, ruby-net-ssh was updated to version 1:6.1.0-2+deb11u1 to fix that. Probably the same update would be needed in Ubuntu. Could you try installing http://ftp.debian.org/debian/pool/main/r/ruby-net-ssh/ruby-net-ssh_6.1.0-2+deb11u1_all.deb and see if this fixes the issue? Lucas