SSH question, Please help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pvadhi07
    New Member
    • Nov 2006
    • 6

    SSH question, Please help

    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.
  • michaelb
    Recognized Expert Contributor
    • Nov 2006
    • 534

    #2
    I did not get the entire picture... but look at the remote shell command (rsh), it might come helpul in your situation.

    Comment

    • EnnisMac
      New Member
      • Nov 2006
      • 1

      #3
      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.

      Comment

      Working...