Re: ssh no password problem



Your DSA public key based authentication is working fine. You are
being prompted for the passphrase to tyour DSA Key, not your login
password. This is because you had given a passphrase during generation
of the DSA keypair. If you want a complete passwordless login, give an
empty passphrase during DSA key generation.
You can use ssh-keygen -p to reset the passphrase to a blank passphrase.
Hope this helps.

On Sun, Aug 31, 2008 at 5:46 PM, Adel ESSAFI <adel.safi@xxxxxxx> wrote:

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



--
PhD candidate in Computer Science
Address
BP 108, Bureau de poste Tunis republique
1001 Tunis
Tunisia
tel: +216 97 246 706
fax: +216 71 391 166

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





--
Sambit Bikas Pal
MS 3rd Year
Indian Institute Of Science Education & Research Kolkata,
HC 7, Sector-III
Salt Lake,
Kolkata-700106

Web http://sambitbikaspal.googlepages.com
OpenPGP Key: http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x8E57F8B897D372B3

--
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
    ... Subject: ssh no password problem ... 135 ssh-keygen -t dsa ... when I do ssh localhost, ... The passphrase may be empty to indicate no passphrase ...
    (Ubuntu)
  • Re: Remote X
    ... ssh-keygen -t dsa ... It will ask you for a passphrase. ... If you leave it blank your private key ... login without a password. ...
    (Fedora)
  • Re: Suggestions For The Passing of Passphrases
    ... communication which includes the login or password. ... or encrypt passwords, such as getting the guy a message that says Im ... sending you a passphrase but its ROT13'd ...
    (sci.crypt)
  • Re: Using SHA1 Digested Passwords for SSH connection
    ... database - i.e. so that you can unencrypt them when you need to use ... storing the decryption key on disk, ... decryption passphrase when your application starts. ... created it with no passphrase) will be able to use it to login. ...
    (comp.lang.ruby)
  • pam_ssh problems
    ... login with _any_ password (empty, ... If I get the passphrase wrong I login, but the key is not added to ... for Genesis Software - http://www.gsoft.com.au ...
    (freebsd-hackers)