in reply to Problem with Apache and SSH: Help needed!
Not a lot of information to go on, but I'll give it a shot anyway.
My guess is that the account that the cgi script runs as is different than the account you are using on the command line, and is not authorized to connect to the remote hosts.
Another possible problem is if you are using the ssh-agent for authentication, as the cgi script will not pick up the required environment variables.
Also, if you are using ssh to access new hosts, it will need a tty to ask for confirmation about new host keys. This could be combined with the first problem. If the web server account has never used ssh to access the other hosts, the first time it accesses each host it will need a tty to ask for confirmation about the host key, even if you have successfully used ssh from another account (including root) on the same server to access the other host.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Problem with Apache and SSH: Help needed!
by Anonymous Monk on Apr 08, 2002 at 09:15 UTC | |
by tachyon (Chancellor) on Apr 08, 2002 at 09:41 UTC | |
by jeffenstein (Hermit) on Apr 08, 2002 at 09:59 UTC |