Setting SSH keys for SCP and trusting host

pal2k used Ask the Experts™

I would appreciate if can get step - step help for creating a SSH keys for SCP between 2 Unix Solaris servers.

Both the servers have the following under /home/user/.ssh

authorized_keys  id_rsa        known_hosts

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Step by Step  be very careful on the permissions on files sshd is very picky
Distinguished Expert 2017
ssh-keygen -t (rsa1|rsa|dsa)
This will generate the three types of keys, (not sure whether AES is making its rounds) And set a passphrase if you choose.

copy the, and should be copied into the remote authorized_keys.
Note each key is a single line entry.

This deals with the ssh version 1 which is rarer (due to security issues) and ssh version 2.

This deals with the setup, you need to make sure that /etc/ssh/sshd_config includes
RSAAuthentication yes
PubkeyAuthentication yes

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial