On Sun, Feb 04, 2018 at 09:01:04PM +0000, steve-ALUG@hst.me.uk wrote:
On 03/02/18 09:40, Chris Green wrote:
I have a script that runs ssh several times to do some manipulations on a remote system and also runs rsync to the same remote system two or three times.
Is there some way to get a single entry of the ssh password to work for all the ssh and rsync calls?
Do most of the work in a script on the remote machine, which is launched by one ssh from the local machine. If the script would require different actions depending on something, then use an initial rsync (using keys to login) to transfer the configuration data.
That's exactly what I would normally do but there are some rsync copies which can only be done from the client end unfortunately.