Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to SSH using Bash on WSL

I have recently installed Bash on Windows thru WSL.

However, when I tried to access my school server using SSH for my projects (as I normally would using PuTTY), I keep getting the following error message whenever I tried to SSH into my school network:

The command I entered was:

ssh [email protected] 

And the error message I received was:

Could not resolve hostname schooldomain.edu.com: Temporary failure in name resolution

As I am rather new to unix system, I might have missed out certain configuration steps. That said, I could access my school's server using PuTTY. Please advice if there are any other configurations that I might have to do to get it working.

Thanks folks!

like image 689
xhxh96 Avatar asked Jul 27 '26 18:07

xhxh96


1 Answers

Sounds like DNS issue. Make sure that you are able to ping schooldomain.edu.com as @ifconfig mentioned in the comment. Also make sure that you have the correct DNS entry in /etc/resolv.conf. It should look similar to

cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

I am using google DNS but you can use any DNS you want.

like image 164
FELASNIPER Avatar answered Jul 30 '26 09:07

FELASNIPER