Discussion:
[drbd-mc] (no subject)
Roman.Zinnendorf
2011-03-11 13:11:42 UTC
Permalink
Hello,

I?m using drdb-mc 0.90 (as applet) and want to authenticate to the hosts via ssh-key, but I can
login only via pasword...

Is there a way to use a ssh-key to login to the Clusternodes from my Windows-Workstation?
--
Best regards

Roman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-mc/attachments/20110311/3a4acafc/attachment.htm>
Rasto Levrinc
2011-03-11 14:02:27 UTC
Permalink
Post by Roman.Zinnendorf
Hello,
I?m using drdb-mc 0.90 (as applet) and want to authenticate to the hosts
via ssh-key, but I can login only via pasword...
Is there a way to use a ssh-key to login to the Clusternodes from my Windows-Workstation?
DRBD MC looks for ssh keys in {user.home}/.ssh/id_dsa and
{user.home}/.ssh/id_rsa files. Where are these files located on Windows?
Is there some standard location for that?

I could use it for Windows or there could be an option to specify the
location of these files, but that's not implemented yet. You can also make
a link or copy the keys there. Is that an option?

Rasto
Post by Roman.Zinnendorf
--
Best regards
Roman
_______________________________________________
drbd-mc mailing list drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
Roman.Zinnendorf
2011-03-11 14:50:53 UTC
Permalink
Hi Rasto,

AFAIK there is no standard location in Windows for that.
There is no Env. Variable with the name "HOME", I can only
see "HOMEDRIVE" and "HOMEPATH" .

I will do some tests with setting a Envvar called HOME and linking to the directory
where the ssh_keys are,because i cannot create a folder named .ssh in Windows...

I think the best way is to implement an Option for setting the location or use another
"standard location" for the files in windows...


Regards
Roman
-----Urspr?ngliche Nachricht-----
Von: drbd-mc-bounces at lists.linbit.com
[mailto:drbd-mc-bounces at lists.linbit.com] Im Auftrag von Rasto Levrinc
Gesendet: Freitag, 11. M?rz 2011 15:02
An: drbd-mc at lists.linbit.com
Betreff: Re: [drbd-mc] (no subject)
Post by Roman.Zinnendorf
Hello,
I?m using drdb-mc 0.90 (as applet) and want to authenticate to the
hosts via ssh-key, but I can login only via pasword...
Is there a way to use a ssh-key to login to the
Clusternodes from my
Post by Roman.Zinnendorf
Windows-Workstation?
DRBD MC looks for ssh keys in {user.home}/.ssh/id_dsa and
{user.home}/.ssh/id_rsa files. Where are these files located
on Windows?
Is there some standard location for that?
I could use it for Windows or there could be an option to
specify the location of these files, but that's not
implemented yet. You can also make a link or copy the keys
there. Is that an option?
Rasto
Post by Roman.Zinnendorf
--
Best regards
Roman
_______________________________________________
drbd-mc mailing list drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
_______________________________________________
drbd-mc mailing list
drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
Rasto Levrinc
2011-03-31 08:43:21 UTC
Permalink
Post by Roman.Zinnendorf
Hi Rasto,
AFAIK there is no standard location in Windows for that.
There is no Env. Variable with the name "HOME", I can only
see "HOMEDRIVE" and "HOMEPATH" .
I will do some tests with setting a Envvar called HOME and linking to the
directory where the ssh_keys are,because i cannot create a folder named
.ssh in Windows...
I think the best way is to implement an Option for setting the location
or use another "standard location" for the files in windows...
There is a new test version dmctest-0.9.1.dev.6.jar here:

http://oss.linbit.com/drbd-mc/

There are new options that you can use:

--id-dsa <arg> location of id_dsa file ($HOME/.ssh/id_dsa)
--id-rsa <arg> location of id_rsa file ($HOME/.ssh/id_rsa)
--known-hosts <arg> location of known_hosts file

thanks,
Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
Roman.Zinnendorf
2011-03-31 13:25:13 UTC
Permalink
Hi Rasto,

thank you for the new options.

I tested them immediatly, and it works!

I?ve only a little problem with the known-hosts file.
I entered the Public-RSA Host-Keys in the file, but
the first time after starting drbdmc, if I connect to the hosts, I get a question, if i want
to accept the hostkey...


Because I connected as a non-privileged user, I checked the Sudo-Option
in the host-wizard. This works with the crm_mon Command, but not with "crm configure show".
I got the error is "cibadmin not available, check your installation". The error occurred, because
the Directory /usr/sbin is not in PATH. I added the directory in the PATH variable in the .bashrc/bash_profile of the user. Now, I can see the output of the command in a shell, but in the mc I get still the error "cibadmin not available, check your installation"...

Is there a way to tell drbdmc to add /usr/sbin in the PATH variable?

best regards,

Roman
--
i.A. Dipl.-Ing. (FH) Roman Zinnendorf
Datacenter Services
Enterprise Server Team

Versatel Nord GmbH

Nordstr. 2
D-24937 Flensburg

Fon: 0461-9090-595 | Fax: 0461-9090-60595 | Mobil: 0173-659 9058
roman.zinnendorf at versatel.de | www.versatel.de

Sitz der Gesellschaft: Flensburg | Registergericht: Flensburg, HRB 3395 FL
Gesch?ftsf?hrer: Dr. Hai Cheng, Marius Rispeter, Joachim Bellinghoven

P Bevor Sie diese E-Mail ausdrucken, pr?fen Sie bitte, ob dies wirklich notwendig ist. Umweltschutz geht uns alle an!
Help save paper - do you need to print this email?
-----Urspr?ngliche Nachricht-----
Von: drbd-mc-bounces at lists.linbit.com
[mailto:drbd-mc-bounces at lists.linbit.com] Im Auftrag von Rasto Levrinc
Gesendet: Donnerstag, 31. M?rz 2011 10:43
An: drbd-mc at lists.linbit.com
Betreff: Re: [drbd-mc] (no subject)
Post by Roman.Zinnendorf
Hi Rasto,
AFAIK there is no standard location in Windows for that.
There is no Env. Variable with the name "HOME", I can only see
"HOMEDRIVE" and "HOMEPATH" .
I will do some tests with setting a Envvar called HOME and
linking to
Post by Roman.Zinnendorf
the directory where the ssh_keys are,because i cannot
create a folder
Post by Roman.Zinnendorf
named .ssh in Windows...
I think the best way is to implement an Option for setting the
location or use another "standard location" for the files
in windows...
http://oss.linbit.com/drbd-mc/
--id-dsa <arg> location of id_dsa file
($HOME/.ssh/id_dsa)
--id-rsa <arg> location of id_rsa file
($HOME/.ssh/id_rsa)
--known-hosts <arg> location of known_hosts file
thanks,
Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
_______________________________________________
drbd-mc mailing list
drbd-mc at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-mc
Loading...