SCP File Transfer

I have 3 AIX server namely - Server 1 , Server 2 and Server 3.

And have done SCP setup between Server 1 and Server 2 so that i dont have to give password when i transfer file from Server 1 to Server 2 by setting public key between the server.

Q1. If the unix password of the target server changes...do I need to do the
public key setup again between the server1 and server 2.

Q2. If I want to do simiar setup between server 2 and server 3. Do i need
to re-genearate a difference public key between server 2 and server 3.

R1: No, if you change your password, keys will still work.

R2: You will need a dsa/rsa key on server2 if there is none, if it's there, you can chose to use existing or generate a new one.

Then you run from server2 :

ssh user@server3 'cat >> ~/.ssh/authorized_keys' < ~/.ssh/id_rsa.pub

Hope that helps.
Regards
Peasant.

Sorry question 2 was wrong..

If i want to do the scp setup without password between server1 and server 3...do i need to re-generate the public key....

You can use existing key, but you need to make key exchange between server1 and server3 as you did between server2 and server3 initially.