Hi all,
I'm attempting to exec() an scp command string between two remote
hosts (3rd-party) from a Java program running locally. I'm trying
to use the -o "StrictHostKeyChecking no" option to have ssh add
new hosts to my ~/.ssh/known_hosts file without asking my permission.
I've not come up with a cmd syntax that does not either complain that
I don't have a "controlling terminal," or an "ambiguous target" error.
Can someone supply such a command syntax?
I want to do something from Java such as (from host A):
scp -vpBr -o "StrictHostKeyChecking no" B:/tmp/foo C:/tmp
Exec'ing only ssh from Java, with -o "StrictHostKeyChecking no", seems
to work fine, with no tty-related complaints.
Cheers! Bill Barber