I have an requirement on connecting to different linux servers using a shell script.
I have server1 and Server2.
I need to connect to server1 using ssh , check if a file exists if exists then connect to server2 and perform some action say load data.
Is it possible using a shell script. Any help is really appreciated