home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / sr / README.SSH < prev    next >
Internet Message Format  |  1998-10-02  |  2KB

  1. Date: Thu, 1 Oct 1998 03:25:53 -0700
  2. From: John Wagner <wagner@itd.ucdavis.edu>
  3. To: sr-project@cs.arizona.edu
  4. Subject: ssh vs. rsh
  5.  
  6. Hi!
  7. I needed to build sr to use ssh rather than rsh.  It was fairly simple,
  8. but required a couple changes.
  9.  
  10. First, in Configuration, put
  11.     RSHCMD = /usr/bin/ssh
  12. Then, in rts/srx.c, when calling execl (for remote machine startup of a vm)
  13. you need to switch the order of the hostname (p->hostname) and the "-n" flag.
  14.  
  15. Also, the conditional compilation for linux of an extra "--"
  16. arg needs to be removed when calling ssh.  That is, the call needs to
  17. evaluate out to:
  18.     execl("/usr/bin/ssh", "/usr/bin/ssh", "-n", "hostname.cs.arizona.edu", ...);
  19. Also, the "--" doesn't appear to be needed in my version of linux; as I
  20. recall, this was fixed long ago.
  21.  
  22. Sorry I didn't piece this together as a patch file; I don't have the time
  23. right now, and it probably requires the addition of an extra define in
  24. Configuration, like
  25.     #define USE_SSH 1
  26. (and I really don't have the time).
  27.  
  28. Anyway, this is what I had to do to get sr to build on my Alpha running linux
  29. and using ssh instead of rsh.
  30.  
  31. Sincerely,
  32. John Wagner
  33. Chief Scientific Programmer
  34. Institute of Theoretical Dynamics
  35. University of California, Davis
  36.  
  37.  
  38.  
  39. Date: Thu, 1 Oct 1998 22:23:16 -0700
  40. From: John Wagner <wagner@itd.ucdavis.edu>
  41.  
  42. Please feel free to post it to the web site, and keep my name
  43. and email address on it, maybe add that I'd be more than happy
  44. to give others a hand if they run into problems with it.
  45.  
  46. NB, though--our resident linux guru told me today that one can
  47. build ssh so that it takes rsh args.  I havent' verified it,
  48. but our other guru thought it was the case as well.  So,
  49. that is probably a better sol'n.
  50.  
  51. Regards,
  52. John Wagner
  53. Chief Scientific Programmer
  54. Institute of Theoretical Dynamics
  55. University of California, Davis
  56.  
  57.