Re: ssh no password problem



On Sun, Aug 31, 2008 at 02:16:12PM +0200, Adel ESSAFI wrote:
From: Adel ESSAFI <adel.safi@xxxxxxx>
To: "Ubuntu user technical support,
not for general discussions" <ubuntu-users@xxxxxxxxxxxxxxxx>
Reply-To: "Ubuntu user technical support,
not for general discussions" <ubuntu-users@xxxxxxxxxxxxxxxx>
Date: Sun, 31 Aug 2008 14:16:12 +0200
Subject: Re: ssh no password problem
Precedence: list

I have followed exactly the instruction but still with the same problem.

135 ssh-keygen -t dsa
137 cd .ssh/
139 cat id_dsa.pub >> authorized_keys2
141 chmod 644 authorized_keys2

when I do ssh localhost , i get still this

oar@lion:~$ ssh localhost
*Enter passphrase for key '/home/oar/.ssh/id_dsa':*
Linux lion 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
Last login: Sun Aug 31 14:09:28 2008 from localhost
oarsh: The OAR_KEY environment variable is not defined and this seems to be
a oar user connection.
oarsh: See 'Important notes' part of the 'CPUSET installation' section of
the OAR documentation.
Connection to localhost closed.




2008/8/31 Mario Vukelic <mario.vukelic@xxxxxxxxxxx>

On Sun, 2008-08-31 at 11:47 +0200, Adel ESSAFI wrote:
What are other reasons that can causes that!

Wait a minute, rom the command listing in your original post it seems
that you might have generated and added the public key on the same
machine, is that correct?

You need to generate id_dsa.pub on the local machine, then copy it to
the remote host and add it _there_ to ~/.ssh/authorized_keys2

If you follow the instructions on
https://help.ubuntu.com/8.04/serverguide/C/openssh-server.html to the
letter, it should be fine.


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users





Perhaps the issue is with the steps you took to generate the key. The
message you show above does not show that ssh is prompting you for
your login password, it shows that it's prompting you for your key
password.

Note that you can generate your dsa keys either with or without a
password. I always generate mine without a password, so I don't know
what I would see with the password. But I do know that when I don't
have a key set up at all, I get a different password prompt than the
one you show.

Here's from the ssh-keygen man page:

Normally this program generates the key and asks for a file in which
to store the private key. The public key is stored in a file with the
same name but ``.pub'' appended. The program also asks for a
passphrase. The passphrase may be empty to indicate no passphrase
(host keys must have an empty passphrase), or it may be a string of
arbitrary length. A passphrase is similar to a password, except it
can be a phrase

I hope this helps.

Bill

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: ssh no password problem
    ... Your DSA public key based authentication is working fine. ... being prompted for the passphrase to tyour DSA Key, not your login ... This is because you had given a passphrase during generation ... when I do ssh localhost, ...
    (Ubuntu)
  • help? ssh connect w/ DSA pubkey auth keeps asking for passphrase; w/ RSA pubkey auth, all is OK
    ... i've created two ssh passphrase-less keypairs for my machine, 'devbox', one RSA ... and all i'm finding is advice to create the DSA keys ... without passphrase ... ...
    (SSH)
  • RE: Controlling ssh from an external program
    ... passphrase could be discovered and the private key would fall into dangerous ... NB the SSH environment strings need to be included in this mixture! ... character as the final character could signify accept from a file. ... Controlling ssh from an external program ...
    (SSH)
  • Re: More on learning "Public Key Authentication"
    ... > computers in my local network are configured that way. ... > A long passphrase is a good idea but for other reasons. ... I _think_ a passphrase is used merely to verify that a public SSH ... _public_ keys between computers, so I do not even use a public SSH ...
    (comp.sys.mac.system)
  • different SSH/keychain behavior on Fedora Core 4?
    ... I'm wondering if anyone's seen different SSH and keychain behavior on ... But since upgrading the home machine to FC4 this trick no longer works ... for the passphrase for the local RSA private key... ... I realize that this may be more of an SSH question than an actual Fedora ...
    (Fedora)