Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 14011  / 1 Year ago, fri, may 12, 2023, 3:20:24

I'm trying run the command ssh localhost but receive the error


ssh: connect to host localhost port 22: Connection refused


WhenI try to check the status of the SSH Server with the command sudo service ssh status I receive the error



  • sshd is not running


I installed the SSH Client with sudo apt-get install openssh-client and the SSH Server with sudo apt-get install openssh-server ii. What else could the issue be thank you.


More From » ssh

 Answers
0

WSL does not automatically start sshd


Try removing the ssh server with:


sudo apt remove openssh-server

And then install it again with:


sudo apt install openssh-server

Then check the server status to see if it is running. If not, try:


sudo service ssh start

to start the server. See more here


Hope this helps


[#2887] Sunday, May 14, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
damomnning

Total Points: 422
Total Questions: 90
Total Answers: 106

Location: Mali
Member since Thu, Aug 13, 2020
4 Years ago
damomnning questions
;