This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sshd - ssh-host-config uses incorrect username for setupâ


On Dec 29 09:08, Brian Mc George wrote:
> Hi,
> 
> I am using EC2 and need to automate the configuration of sshd
>  at instance launch. If I manually rdp into the machine and execute:
> ssh-host-config --yes --privileged --user cyg_server --pwd ${PASSWORD}
> 
> it will work correctly.
> 
> However,
> If
>  I use user data (lets you execute powershell commands on instance 
> start) it will fail. It will also fail if I try execute the command 
> using winrm (the windows equivalent of ssh). 
> 
> If I rdp into the machine and execute it manually then the cygwin name will be 'cyg_server'
> If I try automate it the cygwin name is <machine_name>+'cyg_server'
> It then cannot find the cyg_server account and fails.

I can't reproduce your scenario so I'd be grateful if you (or anybody else
having this problem) could inspect the ssh-host-config script and try to
find out how to recognize and workaround the scenario.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]