Sorry for my bad english. But i neeed your help guys!
I need to login via ssh to ubuntu servers, easy yeah?
But I have some troubles:
I need to log at 200 servers
... its possible manually but toooo long and boring here is my routine:
1) ssh -i "PathToKey/Key" ubuntu@serverAddress
Its always asking me to allow or not, and I have to manually type yes/no
2) okey, we are connected at some sec, then i need to run script at ubuntu server, to launch/relaunch process:
#!/bin/bash
nohup myprocess &
(using nohup to allow running my procces even if i close ssh session)
3) close my terminal window
and all this again and again...
Im asking your help to automate all this hell, maybe create file with the list of addresses, maybe connect and one by one, or maybe 5 at one time, typing this "yes", not big timeout (to give time to connect to server), run script, again timeout over 3-5sec to give time to run script, close this session and start another till the list of my servers wont end...
I understand its possible via apple script or automator but i'm noob who needs help)
Thanks for you attention
I need to login via ssh to ubuntu servers, easy yeah?
But I have some troubles:
I need to log at 200 servers
1) ssh -i "PathToKey/Key" ubuntu@serverAddress
Its always asking me to allow or not, and I have to manually type yes/no
2) okey, we are connected at some sec, then i need to run script at ubuntu server, to launch/relaunch process:
#!/bin/bash
nohup myprocess &
(using nohup to allow running my procces even if i close ssh session)
3) close my terminal window
and all this again and again...
Im asking your help to automate all this hell, maybe create file with the list of addresses, maybe connect and one by one, or maybe 5 at one time, typing this "yes", not big timeout (to give time to connect to server), run script, again timeout over 3-5sec to give time to run script, close this session and start another till the list of my servers wont end...
I understand its possible via apple script or automator but i'm noob who needs help)
Thanks for you attention