Find the answer to your Linux question:
Results 1 to 2 of 2
Hey! 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    3

    Openssh, create a public key authentication from cli only


    Hey!
    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.

    Thanks.

  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    699
    the commands have defaults, just use them. run the ssh-keygen, and keep hitting enter until your prompt returns. Then copy the file ~/.ssh/id_rsa.pub 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 http://www.catb.org/~esr/faqs/smart-questions.html

    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
  •