Skip to content

Commit

Permalink
Fix Ubuntu 22.04 box's rejection of RSA key
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart X Addison <[email protected]>
  • Loading branch information
sxa committed Mar 20, 2023
1 parent 4c502a4 commit 6d52833
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansible/vagrant/Vagrantfile.Ubuntu2204
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ $script = <<SCRIPT
if [ -r /vagrant/id_rsa.pub ]; then
mkdir -p $HOME/.ssh && cat /vagrant/id_rsa.pub >> $HOME/.ssh/authorized_keys
fi
# Ubuntu 22.04 box doesn't accept the RSA key
echo PubkeyAcceptedAlgorithms +ssh-rsa >> /etc/sshd/sshd_config
SCRIPT

# 2 = version of configuration file for Vagrant 1.1+ leading up to 2.0.x
Expand Down

0 comments on commit 6d52833

Please sign in to comment.