sshd_config

SSH access didn't work, the resolution was:

under /etc/ssh/sshd_config, these are added:
#stopsrc -s prngd
#stopsrc -s sshd

#startsrc -s prngd
#startsrc -s sshd

#UseDNS no
and then,
stopsrc -s sshd
startsrc -s sshd

http://www.experts-exchange.com/Operating_Systems/AIX_IBMs_UNIX_OS/Q_21708471.html

The question I have is why/how it was changed.  It worked fine before, but something has happened by someone.
It there a way to trace why SSH suddenly was not working?
JohnLucaniaAsked:
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.

gheistCommented:
You added lots of comments to sshd_config. They make no change at all.
JohnLucaniaAuthor Commented:
Then, do you think that stopsrc -s sshd startsrc -s sshd took care of it?
gheistCommented:
I think so. Damage in file is somewhere else.
Look for all files named sshd_config - find / -name sshd_config
Then find differences between two files with diff. And undo those irreleavant.
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

JohnLucaniaAuthor Commented:
ok, but the question (why/how it was changed) still remains.
Another word, why it (stopsrc -s sshd startsrc -s sshd) had to be done?
gheistCommented:
To restart ssh server to apply its new condifuration. Log messages are written to wherever /etc/syslog.conf specifies when syslog daemon is started. Otherwise AIX tent to make no logs at all.

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
JohnLucaniaAuthor Commented:
ok, I found that 'PasswordAuthentication' was set to 'no' under both of ssh_config and sshd_config.
I commented out 'PasswordAuthentication no', which makes the default 'yes'.
and then stopsrc -s sshd startsrc -s sshd.

Thanks much.
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
Unix OS

From novice to tech pro — start learning today.