-
I hate SSH!!! Help needed before I go insane
Hey all,
I have installed OpenSSH 2.3.0p1 on RH6.1, (486 firewall/router), it *works* fine.
I just can't login. I have tried, everything, asked on IRC, everywhere, created /etc/pam.d/sshd and a million other things under the sun.
I really need this to work!
This is the really dirty debug info from sshd -d:
debug1: sshd version OpenSSH_2.3.0p1
debug1: Seeding random number generator
debug1: read DSA private key done
debug1: Seeding random number generator
debug1: Bind to port 22 on 0.0.0.0
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
debug1: Seeding random number generator
debug1: Seeding random number generator
RSA key generation complete.
# Now I do "/usr/local/bin/ssh localhost":
debug1: Server will not fork when running in debug mode.
Connection from 127.0.0.1 port 917
debug1: Client protocol version 1.5; client software version OpenSSH_2.3.0p1
debug1: no match: OpenSSH_2.3.0p1
debug1: Sent 768 bit public key and 1024 bit host key
debug1: Encryption type: 3des
debug1: Recieved session key; encryption turned on.
debug1: Installing crc compensation attack detector.
debug1: Starting up PAM with username "jamie"
debug1: Attempting authentication for jamie.
Failed rsa for jamie from 127.0.0.1 port 917
# I get jamie@localhost's password: from the # client ... and enter my password
debug1: PAM password authentication for "jamie" failed[7]: Authentication failure
Failed password for jamie from 127.0.0.1
# Client says: "Permission denied, please try again."
No matter what password I enter, the same thing happens... Please please please please please help!
Thanks
---
Ciao, Jamie
Ice0@btinternet.com
Power to the penguin!
-
Oh and heres my /etc/pam.d/sshd:
#%PAM-1.0
auth required /lib/security/pam_pwdb.so shadow nodelay
auth required /lib/security/pam_nologin.so
account required /lib/security/pam_pwdb.so
password required /lib/security/pam_cracklib.so
password required /lib/security/pam_pwdb.so shadow nullok use_authtok
session required /lib/security/pam_pwdb.so
session required /lib/security/pam_limits.so
It's at /etc/pam.d/sshd and /etc/pam.d/sshd.pam just to be on the safe side
Any help would be appreciated...
---
Ciao, Jamie
Ice0@btinternet.com
Power to the penguin!
-
I've not got much experience using the pluggable authentication modules (PAMs), but one thing I have noticed is that the encryption methods mentioned are different. Are you encrypting things appropriately on both ends? I see both the "3des" method of encryption and the "rsa" method. Is it supposed to be that way?
HTH
-
Perhaps you should rerun ./configure with --enable-pam option if you intend to use pam auth with openssh...if you decide not to
then you can disable it (see ./configure --help).Hope this helps.
-
Thanks guys, It's all fixed now
I forgot to cp identity.pub to authorized_keys which is why it didn't work.
---
Ciao, Jamie
Ice0@btinternet.com
Power to the penguin!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|