Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Problem with ssh noninteractive login
November 19, 2009, 12:00 pm
rate this thread
I'm trying to run application on remote machine via ssh. From shell I'm
ssh -t user@host /path/to/app
and it works.
Next, I'm calling the same ssh command from my application using exec
and it works, but only if the application is started interactively from
If application is stared from init.d script, remote server asks for
password. Looks like ssh called this way, doesn't use RSA key for
authentication. I've tried to add -i /path/to/key to ssh command, but it
doesn't help. I suspect that the problem is related to some environment
variables, but checked all referenced in man page of ssh without success.
What I'm doing wrong ?
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum