Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad HTTP response from Server while connecting to windows host #386

Open
keno61 opened this issue Jul 23, 2024 · 0 comments
Open

Bad HTTP response from Server while connecting to windows host #386

keno61 opened this issue Jul 23, 2024 · 0 comments

Comments

@keno61
Copy link

keno61 commented Jul 23, 2024

Hello,

i try to connect to a windows machine in our environment with the command:
s = winrm.Session('winpc1.xxx.de', auth=('user', 'secret'), proxy='http://DOMAIN%5Cuser:secret@proxyserver:8080')

i get the error message:
File "/home/ansible/.local/lib/python3.8/site-packages/winrm/transport.py", line 352, in _send_message_request raise WinRMTransportError("http", ex.response.status_code, response_text.decode()) winrm.exceptions.WinRMTransportError: Bad HTTP response returned from server. Code 502

We use a proxy server in our environment. Either i want to use a kerberos authentication here how can i realize this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant