can not connect linux via putty

Hi All

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

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

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).
piaakitAuthor Commented:
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.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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

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"?

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

From novice to tech pro — start learning today.