Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion Connecting to the Virtual Machine via SSH

Gustavo Winter
PLUS
Gustavo Winter
Courses Plus Student 27,382 Points

SSH doesn't work on Windows

Hi, my OS is Windows 7, exactly on 04:15 on the video, Jay McGavren ask to go for our host computer terminal, but when i type the command my windows dont recognize SSH.

I searching over the internet to see solution to this, where i found the Putty software, it should solve the problem, but when i type the Host Name (ip adress) on Putty, a new error appers telling the host doesnt exist or the connection can not be complete.

Again, i searching over the internet and i found some solution, but most of then ask to change the DNS on my router connection. And i use my home network to work, so i can make a mistake to miss for a few days my internet.

I'm lost and i can't following the track without this, please i'll appreciate any help.

P.S: I have Ubuntu installed on my computer, but there is no connection to the internet, my doubt is at the community --check here i will install another Linux to try solve it, but please, help me with windows too.

thanks

4 Answers

Alejandro Narvaja
PLUS
Alejandro Narvaja
Courses Plus Student 7,340 Points

Gustavo, it appears that you are not entering the correct IP address. Think that the IP address that appears in the video is not the same as you might have on your computer. Please, take a screenshot with the error so we see it.

Alejandro Narvaja
PLUS
Alejandro Narvaja
Courses Plus Student 7,340 Points

Can you try this on your Windows command prompt? (not on VB):

ipconfig 

And try with the IP address that appear

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

Gustavo Winter unfortunately the problem could be in several different places.

Try these steps:

  • In a shell on the guest OS, run sudo ps -aux | grep ssh to ensure the SSH server is running. See this link for more info.
  • Follow these directions to connect in PuTTY. Try the directions using a host name of localhost first, then try using a host name of 127.0.0.1 (which is a special address similar to localhost) if localhost doesn't work.
  • Ensure that port forwarding is set up correctly in VirtualBox, exactly as shown in the video. For help, you might try posting a screenshot of your port forwarding configuration here on this forum thread.

I tried this solution and problem has gone > https://gist.github.com/cfebs/57a5bbd3312732ad34ac3ffb7fa80056 and you will need following info too if you have firewall on your virtual machine > https://www.howtogeek.com/115116/how-to-configure-ubuntus-built-in-firewall/