in reply to Copy file from one sereve to another server directly.
You can see in Net::OpenSSH documentation how to combine it with Expect.
Another alternative is to configure public key authentication from your machine to both server1 and server2 and then use the authentication agent forwarding feature of SSH to enable ssh'ing from server1 to server2 without storing any keys in server1 (it is usually a bad idea to enable password-less authentication between servers as that can be easily exploitable by any attacker to move freely between servers).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Copy file from one sereve to another server directly.
by dilip.patel (Initiate) on Nov 13, 2014 at 14:06 UTC | |
by MidLifeXis (Monsignor) on Nov 13, 2014 at 14:31 UTC |