SSH Login problem.

CooLMaN

Verified User
Joined
Mar 9, 2004
Messages
11
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.
 
BTW, restarting/reloading / stop and start to the SSHD didnt work(From the panel) .


gil.
 
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.
 
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
 
DirectAdmin Support said:
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.
 
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
 
Back
Top