lavabit / robox

The tools needed to robotically create/configure/provision a large number of operating systems, for a variety of hypervisors, using packer.
626 stars 139 forks source link

RHEL6 - Error trying ssh command #193

Closed adrianovieira closed 2 years ago

adrianovieira commented 3 years ago

RHEL6 - Error trying ssh command: vagrant ssh

steps to reproduce:

  1. vagrant init -m generic/rhel6 (or vagrant init -m generic/rhel6 --box-version 3.1.24)
  2. vagrant up
  3. vagrant ssh

    vagrant@<IP>: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

env info:

O.S.: fedora-33
Vagrant:  2.2.9
vagrant-libvirt (0.1.2, system)
abbbi commented 2 years ago

you probably hit this one: https://rwmj.wordpress.com/2022/08/08/ssh-from-rhel-9-to-rhel-5-or-rhel-6/

ladar commented 2 years ago

Yeah, the issue isn't the RHEL 6 image. It's your newer host, aka Fedora, that has disabled the RSA algorithms by default.

ladar commented 1 year ago

The short version of the fix, when using a RHEL (or any of its derivatives) , or Fedora host system:

sudo update-crypto-policies --set LEGACY && sudo reboot