Connecting Tech Pros Worldwide Forums | Help | Site Map

SSH question, Please help

Newbie
 
Join Date: Nov 2006
Posts: 6
#1: Nov 14 '06
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.
Moderator
 
Join Date: Nov 2006
Location: Boston, USA
Posts: 505
#2: Nov 14 '06

re: SSH question, Please help


I did not get the entire picture... but look at the remote shell command (rsh), it might come helpul in your situation.
Newbie
 
Join Date: Nov 2006
Location: Charlotte, NC
Posts: 1
#3: Nov 15 '06

re: SSH question, Please help


Hey, you can setup keys with SSH so you don't need to provide a password when logging in to a system.

Check the openssh or other ssh web site for information on setting up keys.

Good luck.
Reply