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
piaakitAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

woolmilkporcCommented:
It seems that the ssh server daemon (sshd) on the target Linux machine is down.

Please check and start sshd, if required.

Another option: There could be a firewall between you and the Linux machine blocking access to Linux port 22 (if you're using the default port number, that is).
0
piaakitAuthor Commented:
yes you are right i,m getting failed when i try to run service sshd restart, any idea how to fix it ?
0
woolmilkporcCommented:
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.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Gerwin Jansen, EE MVETopic Advisor Commented:
Did you change anything? Were you able to login before?
0
piaakitAuthor Commented:
yes i can login before just in recent day can not login, will try the above method tonight !
0
Gerwin Jansen, EE MVETopic Advisor Commented:
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?
0
piaakitAuthor Commented:
0
piaakitAuthor Commented:
Any idea ?

1
2
0
woolmilkporcCommented:
If you're running a standard SSH server (OpenSSH) on the Linux machine as the result of "service sshd status" suggests, then you should have a binary "/usr/sbin/sshd"!

Could it be that this program got lost? Seems implausible!

Please check the file "/usr/lib/systemd/system/sshd.service". What do you see next to "ExecStart"?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.