Re: Q: pub key login still asks for password??

From: Lukas Neuburger (lukasne-usenet_at_yahoo.com)
Date: 03/09/04

  • Next message: perl coder: "how to re-use existing session?"
    Date: Tue, 09 Mar 2004 02:34:14 GMT
    
    

    Jason,

    When in doubt try using the -v option with either scp/ssh. This will
    enable verbose output from either command, and can often reveal the
    source of the problem. Multiple uses of the option (e.g. -vv) increases
    verbosity.

    Items to look for in the verbose output would be:

    --- BEGIN EXAMPLE TEXT---
    debug1: Authentications that can continue:
    publickey,password,keyboard-interactive
    debug1: Next authentication method: publickey
    debug1: Trying private key: /home/username/.ssh/identity
    debug1: Trying private key: /home/username/.ssh/id_rsa
    debug1: Trying private key: /home/username/.ssh/id_dsa
    debug1: Next authentication method: keyboard-interactive
    debug1: Authentications that can continue:
    publickey,password,keyboard-interactive
    debug1: Next authentication method: password
    --- END EXAMPLE TEXT ---

    The above example illustrates what authentication methods are being
    used, as well any identities being used in public key authentication. In
    your situation you may see information that pinpoints why your public
    key is not being used or if public key authentication is even enabled on
    the remote server.

    Regarding additional reference for SSH, I find the Oreilly SSH book[1]
    to be very useful. There is a free sample chapter from Oreilly's SSH
    book available online[2] that does cover information related to public
    key authentication.

    Good luck,

    -Lukas

    [1]http://www.oreilly.com/catalog/sshtdg/index.html
    [2]http://www.oreilly.com/catalog/sshtdg/chapter/ch08.html


  • Next message: perl coder: "how to re-use existing session?"