Passwordless ssh, problems with passphrase on the server side.

From: dylanthomasfan (Sonny.Rajagopalan_at_gmail.com)
Date: 08/15/05

  • Next message: Darren Dunham: "Re: Passwordless ssh, problems with passphrase on the server side."
    Date: 15 Aug 2005 14:30:42 -0700
    
    

    Hi,

    I am trying to set up a passwordless user login between two of my
    computers, A, the server and B the client, both of which run Linux. A
    runs mandrake 10.0 (2.6.3-7) and B runs Gentoo 2.6.11. A runs
    OpenSSH_3.9p1, OpenSSL 0.9.7c 30 Sep 2003 and B runs OpenSSH_3.9p1,
    OpenSSL 0.9.7e 25 Oct 2004.

    I am having a problem adding the key at the server side. Here's what I
    have already accomplished:

    (a) Created a key pair using ssh-keygen -t dsa on B using a passphrase.
    (b) cat'ted the *.pub file into A in the user account's
    ~/.ssh/authorized_keys2.
    (c) logged into A
    (b) [myusername@A~ ] ssh-agent bash

    But when I try
    [myusername@A~ ] ssh-add .ssh/authorized_keys2

    on the server A, something I don't understand happens. It asks me for a
    passphrase, and when I enter the passphrase which I used in step (a)
    above, it says it is a bad passphrase.

    [myusername@A~ ]>ssh-add .ssh/authorized_keys2
    Enter passphrase for .ssh/authorized_keys2:
    Bad passphrase, try again for .ssh/authorized_keys2:

    Which goes on even though I enter the right passphrase. What is going
    on?

    Any help is greatly appreciated.

    Also, any pointers on what the difference between rsa and dsa is?


  • Next message: Darren Dunham: "Re: Passwordless ssh, problems with passphrase on the server side."

    Relevant Pages

    • Re: getting rid of apache passphrase
      ... > just want to ask if getting rid of the apache passphrase poses a ... Depends on how good your control of access to the server is. ... went out, to get things back up, so I got rid of the passphrase. ... But, if you have a lot of people running around, even if ignorant, ...
      (freebsd-questions)
    • Re: apache
      ... > i have a webserver that needs to run apache with SSL (httpd -SSL, ... > somebody doesn't enter the passphrase by hand... ... > server every time by entering the passphrase by hand is not what i am ... The solution that i opted for was to create a server on a secure network ...
      (FreeBSD-Security)
    • Re: Public key auth problems
      ... > other server, I somewhat disregarded it. ... It first tries to read the key with no passphrase, ... > found that if I do public key and provide the correct passphrase, ... I'm not sure why you think it's weird -- the client needs your passphrase ...
      (comp.security.ssh)
    • Re: PubkeyAuthentication
      ... > I'd like to login from my client to a server without using a password. ... > when I use 'ssh server' it asks me for my passphrase; ... If you've used a passphrase on your key, ...
      (comp.security.ssh)
    • Help with OpenSSH -> SSH2 Server
      ... Secure Shell 2.4.0 server without success. ... client platform OpenSSH combinations: ... Enter passphrase: ... Permission denied (publickey). ...
      (SSH)