Subscription-manager register failed behind proxy

Latest response

Hi,

I would like to subscribe a new rhel7 server virtual system behind a proxy.

vi /etc/rhsm/rhsm.conf

an http proxy server to use

proxy_hostname = nameofmyproxyserver

port for http proxy server

proxy_port = 8080

user name for authenticating to an http proxy, if needed

proxy_user = mysusersomethinglikethat(domain\myusername)

password for basic http proxy auth, if needed

proxy_password = mypassword

Subscription-manager register --auto-attach
failed

tail -f /var/log/rhsm/rhsm.log

File "/usr/lib64/python2.7/httplib.py", line 810, in connect
self._tunnel()
File "/usr/lib64/python2.7/httplib.py", line 792, in _tunnel
message.strip()))
error: Tunnel connection failed: 407 Proxy Authentication Required

I try this too :

export http_proxy=http://user:pasword@proxy-server.mycorp.com:port/
export https_proxy=http://user:pasword@proxy-server.mycorp.com:port/

Same problem :(

i have checked my username password and proxy address . It the same setting i have used on another server and it's works . That server can get the update from redhat.

Can you help me ?

Responses

Hi,

Those steps are indeed right, try out the passing proxy details on the command line as arguments to subscription-manager and check if that helps https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html-single/rhsm/index#repos-proxy

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.