Avatar of piaakit
piaakit
 asked on

can not connect linux via putty

Hi All


        Recently getting this error when connecting to linux via putty, any idea how to fix that ?


puffy
Linux

Avatar of undefined
Last Comment
woolmilkporc

8/22/2022 - Mon
SOLUTION
woolmilkporc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
piaakit

ASKER
yes you are right i,m getting failed when i try to run service sshd restart, any idea how to fix it ?
woolmilkporc

Did you run the command as root? If you didn't try

sudo service sshd restart

What do you get with "service sshd status" (or "sudo service ...")?

You can check for errors in /var/log/auth.log (or whatever log is configured for the "AUTH" facility, if any) , or you can try to start sshd from the commandlne in order to get some info

/usr/sbin/sshd -e

Note that sshd will process just one connection when started with "-e", but will display error messages (if any) on the terminal.

In all cases, use "sudo ..." if you're not root.
SOLUTION
Gerwin Jansen

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
piaakit

ASKER
yes i can login before just in recent day can not login, will try the above method tonight !
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Gerwin Jansen

So you cannot restart sshd? Can you post the error here?

When you try the restart, how are you logged on to the linux machine?
piaakit

ASKER
piaakit

ASKER
Any idea ?

1
2
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
woolmilkporc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.