ccorbell
07-18-2003, 11:54 AM
I want to execute a shell script on a remote machine - it's running Jaguar, it has a static IP address and remote login is enabled.
This is easy from the terminal - I just ssh to the IP address with the username, and then enter the password.
However I want to have a GUI app handle this (specifically a Cocoa app). (Detail: this is for an in-house automated build system; we want to develop an easy GUI portal to the build system. On the build machine, the same user account and password will be shared by team members).
I've read the ssh documentation and some related commands and can't quite see how to do this. Ideally I could just have a shell script in my app bundle with these things hard-coded, but ssh requires the password to be entered interactively. How do you fake interactivity, or otherwise script authentication of ssh without a terminal?
Thanks for any help,
Christopher
This is easy from the terminal - I just ssh to the IP address with the username, and then enter the password.
However I want to have a GUI app handle this (specifically a Cocoa app). (Detail: this is for an in-house automated build system; we want to develop an easy GUI portal to the build system. On the build machine, the same user account and password will be shared by team members).
I've read the ssh documentation and some related commands and can't quite see how to do this. Ideally I could just have a shell script in my app bundle with these things hard-coded, but ssh requires the password to be entered interactively. How do you fake interactivity, or otherwise script authentication of ssh without a terminal?
Thanks for any help,
Christopher