Hello.
I'm trying to get conserver to talk to our Sun Fire X2100 eLOM consoles
via ssh, and used the trick described on
http://www.laen.org/2006/10/09/conserver-and-sun-x4100s/ to do
so. However, this doesn't seem to work.
In conserver.cf, I have the following:
console foo {
type exec;
exec /usr/bin/ssh -tl root 10.0.1.47
initcmd /tmp/login.sh
}
And /tmp/login.sh:
#!/usr/local/bin/expect -f
expect {
"password: " {exp_send "foo\r"; }
}
The following comes when test-running with 'conserver -Fuv'
[Fri Jun 1 15:35:59 2007] conserver (4265): INFO: [foo] pid 4266 on /dev/ttyqg
[Fri Jun 1 15:35:59 2007] conserver (4265): [foo] initcmd started: pid 4267
[Fri Jun 1 15:36:00 2007] conserver (4264): INFO: group #1 pid 4265 on port 51118
[Fri Jun 1 15:36:00 2007] conserver (4264): INFO: access type `t' for `127.0.0.1'
foo: Permission denied, please try again.
foo: Permission denied, please try again.
foo: Permission denied (publickey,password,keyboard-interactive).
[Fri Jun 1 15:36:00 2007] conserver (4265): [foo] exit(255)
[Fri Jun 1 15:36:00 2007] conserver (4265): [foo] initcmd terminated: pid 4267
If I alter the 'exec'-line so ssh is more verbose, it complains about
not being able to open /dev/tty. I tried setting SSH_ASKPASS to a
script which just echoes the password, and DISPLAY to a dummy-value, and
that gets me a successfull login, but the initcmd-script never runs
anyway.
This is on a amd64 FreeBSD 6.2-system, with conserver 8.1.15.
Let me know if there's anything I can test or do, and thank you very
much in advance for any help.
--
Best Regards
Kenneth Schmidt
_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users
I'm trying to get conserver to talk to our Sun Fire X2100 eLOM consoles
via ssh, and used the trick described on
http://www.laen.org/2006/10/09/conserver-and-sun-x4100s/ to do
so. However, this doesn't seem to work.
In conserver.cf, I have the following:
console foo {
type exec;
exec /usr/bin/ssh -tl root 10.0.1.47
initcmd /tmp/login.sh
}
And /tmp/login.sh:
#!/usr/local/bin/expect -f
expect {
"password: " {exp_send "foo\r"; }
}
The following comes when test-running with 'conserver -Fuv'
[Fri Jun 1 15:35:59 2007] conserver (4265): INFO: [foo] pid 4266 on /dev/ttyqg
[Fri Jun 1 15:35:59 2007] conserver (4265): [foo] initcmd started: pid 4267
[Fri Jun 1 15:36:00 2007] conserver (4264): INFO: group #1 pid 4265 on port 51118
[Fri Jun 1 15:36:00 2007] conserver (4264): INFO: access type `t' for `127.0.0.1'
foo: Permission denied, please try again.
foo: Permission denied, please try again.
foo: Permission denied (publickey,password,keyboard-interactive).
[Fri Jun 1 15:36:00 2007] conserver (4265): [foo] exit(255)
[Fri Jun 1 15:36:00 2007] conserver (4265): [foo] initcmd terminated: pid 4267
If I alter the 'exec'-line so ssh is more verbose, it complains about
not being able to open /dev/tty. I tried setting SSH_ASKPASS to a
script which just echoes the password, and DISPLAY to a dummy-value, and
that gets me a successfull login, but the initcmd-script never runs
anyway.
This is on a amd64 FreeBSD 6.2-system, with conserver 8.1.15.
Let me know if there's anything I can test or do, and thank you very
much in advance for any help.
--
Best Regards
Kenneth Schmidt
_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users