Find the answer to your Linux question:
Results 1 to 3 of 3
fedora core - 2 i want to login to a remote server thru ssh using public key authentication. The remote server is on suse. suppose the username on the remote ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Location
    india
    Posts
    87

    ssh using public key


    fedora core - 2

    i want to login to a remote server thru ssh using public key authentication. The remote server is on suse. suppose the username on the remote box is "user1" .
    # ssh-keygen -t dsa -b 2048
    i created one user with same username "user1" in my box.
    i used the above command & placed the private key file in /home/user1/.ssh in my machine & placed the public key file in /home/user1/.ssh in remote machine.

    now i try to login using
    # ssh user1@x.x.x.x where x.x.x.x is the IP add of the remote box.
    the reply is
    permission denied : public key
    Can anyone guide me ????

  2. #2
    Just Joined!
    Join Date
    Feb 2004
    Location
    Indonesia
    Posts
    84
    though i'm never dealing with the ssh-keygen, but maybe you can try what i do with ssh

    1. remove .ssh/ directory on your home directory
    2. now connect your computer to our linux box, this will create a new key again
    3. have you open port 22 from your firewall, (make sure it first)

    hope this help

  3. #3
    Linux Enthusiast
    Join Date
    Feb 2005
    Location
    SE, Stockholm
    Posts
    512
    Ok, you want to login and not be prompted with password, right?
    Then you'll have to create the key localy on the computer you are connecting from, and import the key into the keyfile at remote host $HOME/user1/.ssh
    That should do it. Since the public/private key negotiation is made upon that you trust each and other host, the host-key has to be done from each host you wish to logon from.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •