Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Openssh, create a public key authentication from cli only

    Im trying to create a public/private key for open ssh, I don't really know what difference between the two. I want it to all be one command and not have to hit enter after each command. Here is what I mean:

    i type "ssh-keygen"
    and it asks me were to save, then my paraphrase, then reenter the paraphrase.

    I just want it to be I guess you could say unattended if that makes any sense.


  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    the commands have defaults, just use them. run the ssh-keygen, and keep hitting enter until your prompt returns. Then copy the file ~/.ssh/ to the system you want to log in to, ~/.ssh/authorized_keys

    it should work.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits

    RHCE for RHEL version 5
    RHCT for RHEL version 4

Posting Permissions

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