Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have installed a fresh version of

Status
Not open for further replies.

linuxtricks

IS-IT--Management
May 24, 2000
111
US
I have installed a fresh version of Redhat 6.2 on my system and am trying to get SSH2 to work. It is running on the system, but it fails to authenticate my password. I tried changing my password on the system to try again, but it refuses to accept my "correct" password. BTW, I am using secureCRT (an ssh2 capable client) to try and login. I've installed this plenty of times in the past, but this time around, I have no clue why it is not letting me get in remotely. =(

Here is exactly what I'm doing:

1.downloaded openssh-2.3.0p1.tar.gz from 2. cd /usr/src
3. tar zxvf /location/of/file
4. cd openssh-2.3.0/
5. ./configure
6. make
7. make install
8. added /usr/local/bin/sshd to [red]rc.local[/red] so it starts with the system.
9. started sshd

I can connect no problem... and it asks me for a password. Then my password doesn't work.

Am I missing something?
thanx in advance for any help

Oh. BTW, I do have both prerequesite packages of openssl and zlib installed (as noted on openssh.com). Both packages were installed by doing:
./configure
make
make install
-------------

Do I need to configure them (to work together somehow someway)? Or do they do that by themselves? I HATE BEING A NEWBIE!
-grumpy smurf
 
Try the command /usr/bin/smbpasswd for your user, that will change the passwd. If that does not work, delete the entry in /etc/smbpaswd and try it again.

Hope this works
Tony

p.s sshd2 -v is an excellent debugger, it may help if the above does not work.
 
Also, if you can find the ssh log file, you can do a

tail -f ssh_logfile

this will show you the lines that are added to the file real-time. you can see exactly what messages are being printed while your program runs, obviously you will need a seperate window for this...

MWB
 
Thanks for pointing me in the right direction.
My exact problem was:

"I am using PAM, and needed to manually install a PAM control file as /etc/pam.d/sshd"

The config file I needed (because I'm using Redhat) is in contrib/redhat/sshd.pam

I renamed the file sshd.pam to sshd and put it in the /etc/pam.d/ directory and BAM!!! It worked flawlessly!

me happy camper! you great help!

Thank you! I HATE BEING A NEWBIE!
-grumpy smurf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top