-
Notifications
You must be signed in to change notification settings - Fork 71
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
Chapter 3, Page 34, Testing SSH Access #20
Comments
@ClifRuns, sorry you hit a snag. Is your key created correctly and in your localhost is fine as Vagrant should create a forward port 2222 to the VM running. When you are on the VM from vagrant ssh, I see you showed trying to access the You could try adding debug to your |
Can't connect via SSH bender@localhost: |
Got it 'working':$: vagrant ssh-config $: ssh -i ~/.ssh/dftd -p 2222 bender@VM IP ADDRESS $:ssh -i ~/.ssh/dftd bender@VM IP ADDRESS
System information as of Wed 15 Feb 2023 06:29:47 PM CST System load: 0.0 This system is built by the Bento project by Chef Software The programs included with the Ubuntu system are free software; Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by bender@vagrant:~$Any comment? Suggestions on updating the VM FingerPrint Vagrant PORT forwarding ?? |
By first glance, it seems that vagrant and parallels does not bind SSH port to 2222 outside the VM. I also have a silicon Mac and Parallels. Let me try it over the weekend and see. |
OK, going through the exercise again it seems that vagrant and parallels does not use port 2222 as it does with VirtualBox by default. I will make a note in the README on this. Thanks for digging around :) |
You're welcome. I'm curious - what's 'special' about the apple-silicon folder? I tried running Vagrant from a different location and am unable to bring any arm-64 box 'up'? Is there something unique in the .vagrant folder? |
Hi @bradleyd Are you still planning to update the readme file? I am not getting yet what I need to change in the vagrant file to get it running with parallels on an M1. Thanks |
@Jarmo2 I plan on doing it this weekend. Thanks for the reminder. |
Readme is updated for apple silicon |
Thanks a lot that. That helps me a lot. |
@bradleyd btw, didn't get why we use virtualbox with all hacks but not docker for provider? |
@storenth I wanted to show the differences for infrastructure as code. Vagrant launching a VM has a lot in common with using a tool like Terraform or CloudFormation. This was meant to give people, that are not familiar with Docker and still use VMs, a nice build up before introducing the concept IMO. |
Book has been great until now, often verbatim identical to my output, but ... now I hit this:
begin terminal quote
end terminal quote
My guess is that localhost is the physical host, where bender is unknown. Physical host doesn't know the VM exists (not in /etc/hosts), so how could physical host ssh to the VM? Nothing in VM:/var/log/auth.log or VM:/var/log/syslog looks significant to me. May I please request your help in getting this example to succeed? Thank you.
begin terminal quote
end terminal quote
The text was updated successfully, but these errors were encountered: