The ssh-copy-id command may not be available on older versions of the Mac OS. To circumvent entering your passphrase every time you SSH into a machine, you can use the ssh-agent command that will enter the passphrase for you.If all is right you will not have to enter your RIT password, but instead the passphrase for the key generated. Now the terminal will say that a key was added and ask you to try logging into the machine you just copied the public key to.Next the terminal will ask you to enter your password for the remote machine. The terminal may show you the key fingerprint and ask if you still want to install it.ssh/id_rsa.pub If the ssh-copy-id command is not available on your machine, skip the following steps and go to the "Alternative to ssh-copy-id heading". To add the key to the remote server run: ~] ssh-copy-id -i. The fingerprint of the key and it’s randomart image is also displayed. nano /home/username/.ssh/id_rsa/pub) and see the keys. You can open these files in a text editor (e.g. Now it will tell you where your key pair was saved: Your identification has been saved in /home/username/.ssh/id_rsa Your public key has been saved in /home/username/.ssh/id_rsa/pub Enter passphrase (empty for no passphrase): Enter the same passphrase again: This is to prevent others from seeing your password). ( NOTE: The terminal will not show the password while typing. Make sure to remember this password for later. Next it will prompt you to enter a passphrase and confirm it. Enter file in which to save the key ( /home/RITusername/.ssh/id_rsa):The default file is usually fine. The terminal will respond with: Generating public/private rsa key pair.
0 Comments
Leave a Reply. |