Hi All,
Here is the scenario I am trying to work out.
I want to run a bash script with nohup / screen utility from one node (say node1 ) which keeps running for the amount of time my experiment runs.
The scripts in turn ssh's into 3 different nodes (say node2, node3, node4) and execute some set of commands on each node.
When I ssh from my local machine to node1 (Note : with ForwardAgent enabled) and I run my script on node1 which executes command on node2, node3, node4 all is well.
As soon as my internet connection goes out or I explicitly logout from node1, the script that is running on node1 finds it difficult to ssh into the other 3 nodes and I get permission denied public key error. My execution stops there and nothing goes forward. As I understand this happens because the private key that was authenticating the connection is present on my local machine. There is no way for the ssh service to get this key and and login to the other nodes.
What should do in this situation ?
I tried appending my public key to authorized_keys on all nodes. However this didn't quite work.
Is there someway that I can solve this issue ? Please help.
Thanks in Advance.