Finding the Terminal App The terminal provides you with a text-based command line interface to the Unix shell of Mac OS X. To open the Mac OS X Terminal, follow these steps: In Finder, choose Utilities from the Go menu. Find the Terminal application in the Utilities window. Double-click the Terminal application. The Terminal window opens with the command line prompt displaying the name of your machine and your username. An SSH key consists of a pair of files. One is the private key, which you should never give to anyone.
The purpose of ssh-copy-id is to make setting up public key authentication easier. The process is as follows. Generate an SSH Key. With OpenSSH, an SSH key is created using ssh-keygen. In the simplest form, just run ssh-keygen and answer the questions. The following example illustates this. # ssh-keygen Generating public/private rsa key pair.
No one will ever ask you for it and if so, simply ignore them - they are trying to steal it. The other is the public key. When you generate your keys, you will use ssh-keygen to store the keys in a safe location so you can authenticate with.
To generate SSH keys in Mac OS X, follow these steps:. Enter the following command in the Terminal window. Your identification has been saved in /Users/yourmacusername/.ssh/idrsa. Your public key has been saved in /Users/yourmacusername/.ssh/idrsa.pub. The key fingerprint is: ae:89:72:0b:85:da:5a:f4:7c:1f:c2:43:fd:c6:44:38 [email protected] The key's randomart image is: +- RSA 2048-+.
E. + o = o + o.o. o. Oo.o. +-+ Your private key is saved to the idrsa file in the.ssh subdirectory of your home directory and is used to verify the public key you use belongs to your account.