Link to home
Start Free TrialLog in
Avatar of keith li
keith liFlag for Hong Kong

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 ?


User generated image
SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of keith li

ASKER

yes you are right i,m getting failed when i try to run service sshd restart, any idea how to fix it ?
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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yes i can login before just in recent day can not login, will try the above method tonight !
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?
Any idea ?

User generated image
User generated image
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial