Find the answer to your Linux question:
Results 1 to 2 of 2
I used the command "ssh-keygen -t rsa" to create a key so that 2 of my servers know each other so i can cron a rsync job, but when I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Nov 2004
    Location
    Glacier, WA
    Posts
    103

    ssh keys


    I used the command "ssh-keygen -t rsa" to create a key so that 2 of my servers know each other so i can cron a rsync job, but when I try to transfer the key "ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.3" I get "-bash: ssh-copy-id: command not found", what am I missing?
    GlacierBill

    To stop learning is to stop living

  2. #2
    Just Joined!
    Join Date
    Jul 2007
    Posts
    41
    Not sure what ssh-copy-id does but you should be able to do it manually.

    Code:
    scp ~/.ssh/id_rsa.pub root@192.168.0.3:./
    ssh root@192.168.0.3
    cat id_rsa.pub >> /home/user/.ssh/authorized_keys
    Then you might need to change permissions on authorized_keys so that no-one else can write it.

Posting Permissions

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