admin@glassfish.java.net

Re: setup-ssh on windows

From: Homer Yau <homer.yau_at_oracle.com>
Date: Mon, 11 Oct 2010 16:12:41 -0700

Hi Elena,

   I have setup three windows 2008 r2 systems with ssh (client and
server) using cygwin.
   I use ssh-host-config to configure sshd on each host.
   And then I use ssh-keygen to setup the key for each systems and then
copy id_rsa.pub into each other authorized_keys and authorized_keys2.

   I could able to make all those three systems to ssh without using
password within each other both way.

   By the way, I only use the open ssh and the openssl that comes with
cygwin which I installed.

Thanks,
Homer Yau


Elena Asarina wrote:
> Hello All,
>
> I would like to share my experience, regarding a configuration ssh
> without password on windows machines and discuss setup-ssh.
> First, I've tried to configure ssh without password for at least 10
> windows machines. For none of these machines ssh without password
> could work, if simple execute ssh-keygen and copy pub file to
> authorised_keys in .ssh in a user home dir. As I understand,
> setup-ssh command tries to do exactly such config. I want to add,
> that for several windows machines I was able to configure ssh without
> password by coping .ssh to C:\ and by renaming authorized_keys to
> authorized_keys2, for other windows machines I was not able to
> configure ssh without password, probably such machines have another
> works around.
> So it looks for me, that setup-ssh command doesn't have any chance to
> configure successfully ssh without password on windows. If setup-ssh
> would not exists , then customers, if ssh without password will not
> work, would blame machines configuration, a system administrator,
> them self, but with such command they would blame glassfish, because
> it is our command can not configure ssh without password.
> What I would recommend customers, try to configure a machine such way
> that can be executed ssh localhost without password, if it works, then
> any other machine can be configured to ssh that machine without
> password, so at least one way ssh without password would work.
>
> Thank you,
>
> Elena
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>


--