Re: How do I configure user/host authentication...?

From: Torsten Reuss (t.reuss@gmx.net)
Date: 01/22/02

  • Next message: Bill Unruh: "Re: Wrong password!"

    From: "Torsten Reuss" <t.reuss@gmx.net>
    Date: Tue, 22 Jan 2002 17:56:09 +0200
    
    

    keith edward <keith_teri@yahoo.com> wrote in message
    news:d29f4fb7.0201151241.bff4064@posting.google.com...
    > Hello,
    >
    > I want to be able to set it up so that a specific user from a specific
    > machine will be able to ssh over to a server without having to enter a
    > password... how do I configure this? Any doc's for this?

    Well, that's what public key authentication is for.

    Login as the user, generate a public/private key pair (e.g. ssh-keygen -d
    will generate ~/.ssh/id_dsa and id_dsa.pub
    If you don't want the user to type in any password, don't protect the
    keypair with a passphrase.

    Copy id_dsa.pub over to the server and put it into the
    ~/.ssh/authorized_keys2 of the user that he is supposed to be logging in as.

    Et voila.

    Documentation for that: "man ssh"



    Relevant Pages

    • Re: Explanation of SSH
      ... I am still unclear on how SSH works exactly. ... Client issues SSH command and names server ... "Shopper" says "server sends back its public host and server keys ... Surely there is only one public key it sends ...
      (comp.security.ssh)
    • Re: Restricting ssh access to selected hosts
      ... Then copy the public key to the target box with: ... >> You can make the ssh server key-only, ... > want to login as "userB" on the server. ...
      (comp.os.linux.security)
    • Explanation of SSH
      ... I am still unclear on how SSH works exactly. ... Client issues SSH command and names server ... "Shopper" says "server sends back its public host and server keys ... Surely there is only one public key it sends ...
      (comp.security.ssh)
    • Re: SSH with Public Key Authentication (Was: Re: Attention: Giorgos Keramidas (Was: CVS Import Permi
      ... and got stuck setting up the public key login. ... I spent a few hours yesterday trying to get SSH going again. ... Log in using your private key from the server (ie. login to the ...
      (freebsd-questions)
    • RE: Using public key pair to authenticate
      ... Using public key pair to authenticate ... Most people would start SSH server in debug mode, "sshd -d", and also ...
      (SSH)