Thanks for reply jessi,

I think your mentioned commands for openstack environment isn't it?

Could you please easily and further explain how can I connect to Ansible 
Server to Windows without password.

Thanks,

2020년 1월 16일 목요일 오후 3시 28분 25초 UTC+9, renu jessi 님의 말:
>
> WinRM HTTPS Listener
>
> The ConfigWinRMListenerPlugin configures a WinRM HTTPS listener with a 
> self signed certificate generated on the spot and enables (optionally) 
> basic authentication, which means that a secure communication channel can 
> be established between any client and the server being provisioned, without 
> the requirement of having both the client and the server in the same 
> domain.  A firewall rule is added by cloudbase-init in the Windows firewall 
> for TCP port 5986.
>
> A this point you can login into your server. To begin with, don’t forget 
> to add a rule to your security groups in OpenStack!
> 1
> nova secgroup-add-rule default tcp 5986 5986 0.0.0.0/0
>
> Get the admin password for the instance:
> 1
> nova get-password yourinstance ~/.ssh/your_ssh_rsa_key
>
> On your client connect to your instance as shown in the following 
> PowerShell snippet:
> 1
> 2
> 3
> 4
> 5
> 6
> $ComputerName = "yourserveraddress"
> # Provide your username and password (by default "Admin" and the password 
> you just obtained)
> $c = Get-Credential
> $opt = New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck
> $session = New-PSSession -ComputerName $ComputerName -UseSSL 
> -SessionOption $opt -Authentication Basic -Credential $c
> Enter-PSSession $session
>
> On Thursday, January 16, 2020 at 9:21:33 AM UTC+5:30, Jiwoong Lee wrote:
>>
>> Hi, all.
>>
>> Now I can connect to Linux server without password, It just using SSH key.
>>
>> And I need to connect Windows Server using WinRM but it need to Windows 
>> account and password.
>>
>> How can I connect to Windows Server without password?
>>
>> Please let me know any methods.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/58ddd790-4325-4b7e-90e5-eee5243fdd17%40googlegroups.com.

Reply via email to