run ssh in background

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I'm trying to run ssh comand in such way no ask for password, it says,
run into a batch script such like:


echo "password" | ssh --options -luser hostname


Is there any form to do it?

Thanks in advance.

Re: run ssh in background

On 13 Feb 2004 07:50:14 -0800,
    C. A. ( wrote:
Quoted text here. Click to load it

This will not work (at least I don't think so).  In order of preference:
a) use ssh-agent
b) use keys on both hosts without any password
c) use an expect script (really not advisable)
Bev A. Kupf
"The lyfe so short, the craft so long to lerne" -- Chaucer
Tintin turns 75 <

Re: run ssh in background

Not with password authentication.

  Richard Silverman

Site Timeline