Não é possível conectar-se ao nano-servidor

0

Acabei de criar um servidor nano do Windows e o adicionei ao host confiável de minhas máquinas

Set-Item WSMan:\localhost\Client\TrustedHosts -Value IP -Concatenate

O que funciona, mas quando tento me conectar a ele, faço isso por

$ip = "IP"  

$s = New-PSSession -ComputerName $ip -Credential ~\user4921

Onde user4921 foi adicionado durante a instalação da VM. Quando eu corro o acima eu recebo o seguinte:

New-PSSession : IP Connecting to remote server IP failed with the following error message : WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic. At line:5 char:6 + $s = New-PSSession -ComputerName $ip -Credential ~\user4921 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:Re moteRunspace) [New-PSSession], PSRemotingTransportException + FullyQualifiedErrorId : WinRMOperationTimeout,PSSessionOpenFailed Enter-PSSession : Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.

user4921 era o usuário com sua senha criada durante a instalação da vm.

    
por fUrious 11.01.2018 / 13:21

0 respostas