On Thu, 24 Dec 2009 16:37:14 +0530, Pandurangan R S
wrote:
>> I am using expect command to do auto ssh login
>
> Expect is not a good choice to do this.
>
> Instead it is better to use SSH Key authentication. See
> http://sial.org/howto/openssh/publickey-auth/
>
> You can use empty passphrase
> I am using expect command to do auto ssh login
Expect is not a good choice to do this.
Instead it is better to use SSH Key authentication. See
http://sial.org/howto/openssh/publickey-auth/
You can use empty passphrase (not recommended, but better than using
expect) or use ssh-agent (recommende
J. Bakshi wrote:
> Hello list,
>
> I am using expect command to do auto ssh login. It is working well with
> screen like
>
> ` ` `
> spawn ssh '$ssh_Server' -t "screen -aUS '$ssh_Server' -dR bash -l"
> expect "*assword:"
> send '$PASSWORD'
> send "\r"
> interact'
> ` ` `
> All OK.
>
> Now I am
Hello list,
I am using expect command to do auto ssh login. It is working well with
screen like
` ` `
spawn ssh '$ssh_Server' -t "screen -aUS '$ssh_Server' -dR bash -l"
expect "*assword:"
send '$PASSWORD'
send "\r"
interact'
` ` `
All OK.
Now I am trying to do a screen fail over, so that if