Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

RonnieJ

Upload to multiple servers using privatekey

Hey guys...

I'm trying to connect to multiple servers and uploads some files. My problem is that I have to enter the password every time it connects to another server...

I'm using;

open user@ipaddresse -privatekey=C:\somekey.ppk
and later when the files is uploaded
call find /somefolder/* -group admin -exec chgrp www-data {} \;
close

and then the next server...

Now every time I do a open and that other line that changes group... I have to enter password... Any way to store that password in a session or something like that?