LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-08-2002, 03:02 AM   #1
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
SSH... The after installation step?


I finally installed open ssh and I *think* my installation is ok (because I got a warning about an unexisting "/sshd/" user at the end of the make install, but sshd start perfectly).
Now what I'm suppose to do? I read a lot about ssh key but I think I forgot something. When I started sshd, no error (!!! wow finally !!!). I have read something about "key that need to be generated" so I start ssh-keygen, saved my rsa key to my home dir (/root/.ssh/) then I tried to login into myself (ssh localhost)...

First time, I got something like :
Authenticity of host localhost (127.0.0.1) can't be established.
RSA key finger print is xxxxxxxxxxxxxxxxxxxxxx
Are you sure you want to continue? (yes/no)

I answered yes, but I think this was the wrong answer

Now every time I (try to) login, no matter what password I enter, I get the msg "permission denied, please try again" but I'm not stupid enought to have forgot my root pass!

tell me if I'm wrong but look like sshd can't decrypt my password, or get a wrong pass from ssh (or maybe I missed a step?)

Can you help me ? I'm REALLY lost
 
Old 07-08-2002, 08:21 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Have you tried with a regular account ? root login maybe disabled.
 
Old 07-08-2002, 11:56 AM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Original Poster
Rep: Reputation: 45
I tried... Exactly the same thing happen, the first time I get a strange msg asking me a yes/no answer then everytime I try to log in, it fail.
 
Old 07-08-2002, 12:44 PM   #4
mirkokl
LQ Newbie
 
Registered: May 2002
Posts: 20

Rep: Reputation: 0
As far as I can see, sshd tries to determine whether your host is the right one. It does this by using a key pair. Thus you need an encrypted privte key for a user and an unencrypted private key for the host, as sshd cannot ask for apassword when booting. At least it was like this when I installed ssh last time. The modern SuSE packages include everything needed.

Mirko
 
Old 07-08-2002, 06:19 PM   #5
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Original Poster
Rep: Reputation: 45
But I have these key... Well I think... I have a ssh_rsa_host_key generated by the installation, a ssh_rsa_host_key.pub also generated by the install.
These keys are in /usr/local/etc


ssh-keygen give me id_rsa and id_rsa.pub
these ones are in my root's home


Can the problem be caused because I don't use PAM or /dev/random???
 
Old 07-08-2002, 06:43 PM   #6
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
Did you download the package from the 8.1 package directory here one:
ftp://ftp.slackware-brasil.com.br/sl...ches/packages/

If you installed from source did you enable support for "shadow" and "md5" passwords? If not it will not work.
 
Old 07-08-2002, 11:32 PM   #7
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
how do you ssh, if you are a regular user trying to ssh into your system as root acount you need to give ssh -l flag
ssh -l root localhost or
ssh root@localhost
 
Old 07-08-2002, 11:57 PM   #8
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
I suggest you also read the PGP manual. It's really good at explaining the PKI (public key/private key). That way you'll at least understand what SSH is asking you.
 
Old 07-09-2002, 01:16 AM   #9
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Original Poster
Rep: Reputation: 45
picklebeans, I think you found my problem... I don't think my ssh support md5 pass (what's this? I know shadow but what's md5?) I will try recompiling

If I use the slack 8.1 package, these option will be enabled?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Step by Step guied for Installation pent@net Dvb card under linux mobassir Linux - Networking 4 06-07-2006 08:31 PM
Step-by-step instructions setting up RSA Authentication for SSH? houler Linux - Security 16 04-27-2005 08:08 AM
need a step by step on sftp via SSH please Lleb_KCir Linux - General 1 11-12-2004 03:13 AM
step by step installation of my kernel source zexter Linux - Software 4 11-05-2004 11:31 AM
Step by Step guied for installation Lan card under Linux mobassir Linux - Networking 0 12-12-2003 07:26 AM


All times are GMT -5. The time now is 05:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration