View Full Version : SSH Login problem.
CooLMaN
06-27-2004, 07:37 AM
Hey guys,
Im trying to connect my SSH and it connects but then leaves.
here is the client log:
"..................
[LOCAL] : PTY request succeeded
[LOCAL] : SEND: shell request
[LOCAL] : RECV: TCP/IP close
[LOCAL] : Connected for 3 seconds, 1247 bytes sent, 1840 bytes received
"
When i reboot the server and connect right after it rebooted it connects smoothly.
does any one know what the problem is and how do i fix it?
Thanks,
gil.
CooLMaN
06-27-2004, 08:53 AM
BTW, restarting/reloading / stop and start to the SSHD didnt work(From the panel) .
gil.
CooLMaN
06-27-2004, 10:35 AM
some progress:
I reloaded the SSHD via directadmin and now when i try to connect it says password is worng, i tried changing passwords but nothing wont do it! it wont connect using admin! (root-disabled)
created a admin, it is working, but i dont wanna have 2 admin.
what am i suppose do now? please help..
thanks,
gil.
DirectAdmin Support
06-27-2004, 12:24 PM
Hello,
Check the end of your /etc/ssh/sshd_config file to make sure that any "admin" users you want to use are on a "AllowUsers" line.
John
CooLMaN
06-27-2004, 12:49 PM
Originally posted by DirectAdmin Support
Hello,
Check the end of your /etc/ssh/sshd_config file to make sure that any "admin" users you want to use are on a "AllowUsers" line.
John
Hey,
Yes its there bud, the problem now that it says the password is incorrect thought it connects with this password to da panel, i tried changing pass using da password, and using passwd admin,.
both didn't help.
you got an idea?
thanks,
gil.
DirectAdmin Support
06-28-2004, 09:30 AM
Not sure then. Sshd might be using PAM, whereas DA does not. But PAM normally falls back to the /etc/passwd file (i think) if it's primary login method fails (which can be /etc/passwd).. I'm not positive on that though... All DA knows is the password in the /etc/shadow file. What sshd does is up to sshd.
John
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.