|
Hello Everyone,
I hope you can help me. My problem is I have to run server programs from multiple Linux machines, but I will run them remotely from one machine. That is I will run program1 on machine 1 and then by remote logging into machine 2 I will run program2 . My problem is I have to set up log in info with ssh because I will be running the second program from my first program's interface, not from the command line.
I will log into machine 2 using ssh from machine1 even before I run any programs, but once I start running program1 on machine 1 I will then run program2 on machine 2 using program1's interface, I need the remote login to go through without asking me for a password because this will affect the running of program1 otherwise.
So I know I have to invoke the system() command in my first program's code to run a command line argument invoking program 2 on machine2, but I am not sure how to set up ssh to bypass asking me for password etc. The
manual page on ssh just confused me, so I am desperate for your help.
|