Hi,
if user root has PubkeyAuthentication like /root/.ssh/id_rsa
(with a great password) then the /usr/libexec/webmin/status/rssh-monitor.pl comes to an timeout.
Here my patch:
*** /usr/libexec/webmin/status/rssh-monitor.pl Thu Jan 1 12:16:50 2015
--- /usr/libexec/webmin-1.730/status/rssh-monitor.pl Wed Dec 31 19:06:34 2014
***************
*** 7,13 ****
&foreign_require("proc", "proc-lib.pl");
local $ruser = $_[0]->{'ruser'} || "root";
local ($fh, $fpid) = &proc::pty_process_exec(
! "ssh -o PubkeyAuthentication=no ".
($_[0]->{'port'} ? "-p ".quotemeta($_[0]->{'port'})." " : "").
quotemeta($ruser)."\@".
quotemeta($_[0]->{'host'})." echo ok");
--- 7,13 ----
&foreign_require("proc", "proc-lib.pl");
local $ruser = $_[0]->{'ruser'} || "root";
local ($fh, $fpid) = &proc::pty_process_exec(
! "ssh ".
($_[0]->{'port'} ? "-p ".quotemeta($_[0]->{'port'})." " : "").
quotemeta($ruser)."\@".
quotemeta($_[0]->{'host'})." echo ok");
I just added "-o PubkeyAuthentication=no" to the call of "ssh".
Can you please confirm and fix (or make it configurable).
TIA
Bye
Christian
Wouldn't that change prevent an SSH key from being used to login to the remote system, even if one was setup?
good point, but then you should provide a way to check and enter a password/passphrase.
what is about this?
Christian
Nice idea - I will include this in the next release.