This utility uses ssh-keygen and ssh_copy_id to create RSA private/public key pairs for use by SSH protocol version 1 and RSA or DSA keys for use by SSH protocol version 2. The public key is then copied onto a remote system. You can now SSH to the remote system without the use of a password from the specified machine.
If the file /etc/root/.ssh/authorized_keys exists on the destination system, you probably already have it setup.
For more information see the man pages for ssh-keygen and ssh_copy_id.
- Download trusted-key-exchange-1.3.tgz
- Open a Terminal window and type “su”
- Enter root’s password
- Extract the script from the tarball
#tar –xzvf trusted-key-exchange-1.3.tgz
- Make the script executable.
#chmod 755 trusted-key-exchange-1.3.sh
- Create the shared keys between two Linux systems
- Now ssh to the Linux system and it will not prompt you for the password.
Fixed in the 1.1 version:
- The script will now allow you to have trusted hosts setup between multiple systems. It now supports a one to many relationship.
- The prompts necessary during the script have been reduced.
Note: Using a –h will display other parameter options such as how to automatically delete the key that was just created.
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.