Append the
public-key.tmp file to the end of the
authorized_keys file using the
>> append redirector with the
cat command. The
authorized_keys file contains a listing of all the public keys from machines that are allowed to connect to your Smallfry account without a password. Versions other than Red Hat/Fedora may use different filenames, use the SSH man pages to verify this.
[filecopy@smallfry .ssh]# cat ~/public-key.tmp >>
authorized_keys
[filecopy@smallfry .ssh]# rm ~/public-key.tmp
From now on you can use
ssh and
scp as user filecopy from server Bigboy to Smallfry without being prompted for a password.