Upload to multiple servers using privatekey

Advertisement

RonnieJ
Guest

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?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum