admin@glassfish.java.net

Re: setup-ssh failed for pure cygwin machines.

From: Elena Asarina <elena.asarina_at_oracle.com>
Date: Thu, 09 Dec 2010 14:16:16 -0800

Hi Joe,

I've tried to run many times ssh-host-setup not under Administrator
user, but under another user with administrator privileges. It doesn't
work. First passwd command doesn't allow to setup a password. Second
service creation always failed. But it works fine under Administrator
user, and then the created service is available for other users. But
anyway, if would C:\cygwin\home\<user_name> directory would be created,
it would not help setup-ssh, because setup-ssh is looking for
C:\home\<user_name> directory.

Thank you,
Elena


Joe Di Pol wrote:
>
> Elena,
>
> It is a prerequisite that the SSH account is configured for the
> user before you run setup-ssh. So you must have ssh working
> to the point where you can SSH into the system as the user you want
> (using username/password) before running setup-ssh. When setting
> up an account with the cygwin tool's the user's home directory
> should be created.
>
> Joe
>
>
> Elena Asarina wrote:
>> Hi All,
>>
>> I want to share my last experience with using setup-ssh command on
>> pure cygwin machines. In general, the command proved again that it
>> is useless. I've executed ssh-host-config under Administrator
>> user, because only under Administrator can be executed passwd command
>> and service can be created. Then I've logged in as another user
>> (aroot) , checked that ssh service started and tried to configure ssh
>> without password, using setup-ssh. It failed immediately telling
>> that a directory /home/aroot doesn't exist. I've created
>> C:\home\aroot (on both machines), then was created
>> C:\home\aroot\.ssh dir with correspondent files, but connection -
>> failed.
>>
>> Then I've executed ssh-keygen, that command first reported that
>> /home/aroot doesn't exist. After that I understood that really has to
>> be used C:\cygwin\home\aroot dir, so I've created aroot dir under
>> C:\cygwin\home\, then ssh-keygen was executed successfully and I was
>> able to configure ssh without password, using
>> C:\cygwin\home\aroot\.ssh directories.
>>
>> Bottom line, because ssh-host-config was executed under
>> Administrator, then only Administrator subdirectory was created under
>> C:\cygwin\home\, to be able to execute successfully ssh-keygen I was
>> need to create aroot dir manually, then everything went smoothly.
>> But setup-ssh tried to configure everything under C:\home\aroot and
>> it did not work.
>>
>> I believe I had absolutely typical cygwin installation and probable
>> setup-ssh would work the same way for other cygwin users.
>>
>> Thank you,
>> Elena
>>
>>
>