Re: need help to design screen fail-over

2009-12-24 Thread joydeep
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

Re: need help to design screen fail-over

2009-12-24 Thread Pandurangan R S
> 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

Re: need help to design screen fail-over

2009-12-24 Thread J. Bakshi
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

need help to design screen fail-over

2009-12-24 Thread J. Bakshi
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