-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Outdated SSH client in app image Linux package #11709
Comments
Hey there @reini-1 - Vagrant doesn't ship an ssh client. It uses the ssh client that's available on your path.
https://www.vagrantup.com/docs/cli/ssh.html#ssh-client-usage
It seems like you must have multiple ssh clients installed and available on your path if you are seeing two different results. I recommend making sure that the ssh binary that you prefer show up first on the path so that Vagrant uses that instead. Thanks! |
It looks like this is apparently not true with the all in one package for linux. I recommend installing the debian package instead. This should get you the desired behavior @reini-1. I'll reopen this and apply the right label for that package. |
And it looks like there is already an issue covering this! I'd look here for future updates: #10601 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Vagrant version
Vagrant 2.2.9, installed from https://releases.hashicorp.com/vagrant/2.2.9/vagrant_2.2.9_linux_amd64.zip
Host operating system
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
Guest operating system
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
Vagrantfile
Debug output
When connecting with native ssh from Ubuntu, there is no problem:
I noticed that vagrant has a very old buildin ssh client from 2014 that seems to have problems with these "new" options:
Specifying the
-c
or--command
did also not work:Expected behavior
vagrant ssh
works with ssh configuration options that current ssh versions support.Actual behavior
vagrant ssh
did not work.Steps to reproduce
see debug output
Workaround
As workaround I added the following settings to my .ssh/config, added my own ssh.pub keys to the guest vagrant .ssh/authorized_keys file and use native host ssh directly:
Now I can login like this:
Alternatively you can tell ssh not to use a config file:
Final questions
Why uses vagrant such an old built in ssh client and not a current version?
Why is
-c
or--command
ignored or do I something wrong here?I also noticed that calling
vagrant ssh
orvagrant
in general is very slow.Thanks in advance.
The text was updated successfully, but these errors were encountered: