PDA

View Full Version : Remote shell script - from a GUI?


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

Gimpy00Wang
07-18-2003, 12:55 PM
You can use key-based authentication. While there are security issues related to doing this, you can use key-based auth with no password for your private key. This would allow you to login without having to enter a password.

- G!mpy

gatorparrots
07-18-2003, 02:26 PM
Try SSH Tunnel Manager:
http://projects.tynsoe.org/en/stm/index.php

Gimpy00Wang
07-18-2003, 02:58 PM
Originally posted by gatorparrots
Try SSH Tunnel Manager:
http://projects.tynsoe.org/en/stm/index.php

There's a few other neat tools over there too. Thanks. :)

- G!mpy