[ RHEL Subscription ] SSH TUNNELÀÌ¿ëÇÑ RHEL ¶óÀ̼¾½º µî·Ï ½ÇÆÐ

   Á¶È¸ 3994   Ãßõ 0    

보안상 및 기타 여러 이유로,
SSH 터널을 이용하여 RHEL Subscription을 사용하여야 합니다.


하기와 같이 설정하여 시도 하였으나, 알 수 없는 이유로 라이센스 등록이 실패 하고 있습니다.

참고로, 해당 SOCKS에 yum을 연결 시켜 보면 정상동작합니다.

고수님들의 조언 부탁 드려봅니다.



# 리눅스 서버(라이센스 작업중) -> 외부 서버

ssh -D 1080 root@x.x.x.x ( ID : root, PWD: xyzy ), 연결 정상적으로 완료됨


netstat -anp | grep 1080

tcp        0      0 127.0.0.1:1080          0.0.0.0:*               LISTEN      9797/ssh <==================================== !!!


# 리눅스 서버(라이센스 작업중)

subscription-manager config --server.proxy_hostname=127.0.0.1 --server.proxy_port=1080 --server.proxy_user=root --server.proxy_password=xyzy


subscription-manager register --username ******@****.com --password xxxx      

Registering to: subscription.rhsm.redhat.com:443/subscription

Remote server error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information. <=========== !!!


2018-05-06 23:42:12,346 [INFO] subscription-manager:9802:MainThread @managercli.py:518 - X-Correlation-ID: e185c7638ddb4085af3ff3525b439d26

2018-05-06 23:42:12,346 [INFO] subscription-manager:9802:MainThread @managercli.py:407 - Client Versions: {'python-rhsm': '1.19.9-1.el7', 'subscription-manager': '1.19.21-1.el7'}

2018-05-06 23:42:33,206 [INFO] subscription-manager:9808:MainThread @managercli.py:518 - X-Correlation-ID: a47b9e195bf740a1a1407856eb3fcd32

2018-05-06 23:42:33,206 [INFO] subscription-manager:9808:MainThread @managercli.py:407 - Client Versions: {'python-rhsm': '1.19.9-1.el7', 'subscription-manager': '1.19.21-1.el7'}

2018-05-06 23:42:37,625 [INFO] subscription-manager:9813:MainThread @managercli.py:518 - X-Correlation-ID: eb1cefb875104af89e7b56483b044e8a

2018-05-06 23:42:37,625 [INFO] subscription-manager:9813:MainThread @managercli.py:407 - Client Versions: {'python-rhsm': '1.19.9-1.el7', 'subscription-manager': '1.19.21-1.el7'}

2018-05-06 23:42:37,626 [INFO] subscription-manager:9813:MainThread @connection.py:822 - Connection built: http_proxy=127.0.0.1:1080 host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False

2018-05-06 23:42:37,626 [INFO] subscription-manager:9813:MainThread @connection.py:822 - Connection built: http_proxy=127.0.0.1:1080 host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=none

2018-05-06 23:42:37,627 [INFO] subscription-manager:9813:MainThread @managercli.py:407 - Client Versions: {'python-rhsm': '1.19.9-1.el7', 'subscription-manager': '1.19.21-1.el7'}

2018-05-06 23:42:37,643 [INFO] subscription-manager:9813:MainThread @managercli.py:382 - Consumer Identity name=None uuid=None

2018-05-06 23:42:37,645 [INFO] subscription-manager:9813:MainThread @managercli.py:382 - Consumer Identity name=None uuid=None

2018-05-06 23:42:37,646 [INFO] subscription-manager:9813:MainThread @connection.py:822 - Connection built: http_proxy=127.0.0.1:1080 host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=basic username=******@****.com <============================ !!!!

2018-05-06 23:42:37,670 [INFO] subscription-manager:9813:MainThread @dmiinfo.py:73 - Using dmidecode dump file: /dev/mem

2018-05-06 23:42:37,970 [ERROR] subscription-manager:9813:MainThread @managercli.py:177 - Error during registration: ''

2018-05-06 23:42:37,970 [ERROR] subscription-manager:9813:MainThread @managercli.py:178 - ''

Traceback (most recent call last):

  File "/usr/lib/python2.7/site-packages/subscription_manager/managercli.py", line 1184, in _do_command

    owner_key = self._determine_owner_key(admin_cp)

  File "/usr/lib/python2.7/site-packages/subscription_manager/managercli.py", line 1336, in _determine_owner_key

    owners = cp.getOwnerList(self.username)

  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 1118, in getOwnerList

    return self.conn.request_get(method)

  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 646, in request_get

    return self._request("GET", method, headers=headers)

  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 672, in _request

    info=info, headers=headers)

  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 528, in _request

    conn.request(request_type, handler, body=body, headers=final_headers)

  File "/usr/lib64/python2.7/httplib.py", line 1017, in request

    self._send_request(method, url, body, headers)

  File "/usr/lib64/python2.7/httplib.py", line 1051, in _send_request

    self.endheaders(body)

  File "/usr/lib64/python2.7/httplib.py", line 1013, in endheaders

    self._send_output(message_body)

  File "/usr/lib64/python2.7/httplib.py", line 864, in _send_output

    self.send(msg)

  File "/usr/lib64/python2.7/httplib.py", line 826, in send

    self.connect()

  File "/usr/lib64/python2.7/httplib.py", line 1227, in connect

    HTTPConnection.connect(self)

  File "/usr/lib64/python2.7/httplib.py", line 810, in connect

    self._tunnel()

  File "/usr/lib64/python2.7/httplib.py", line 787, in _tunnel

    (version, code, message) = response._read_status()

  File "/usr/lib64/python2.7/httplib.py", line 408, in _read_status

    raise BadStatusLine(line)

BadStatusLine: ''

ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
     
´äº¯ °¨»çÇÕ´Ï´Ù. È®ÀÎ ÇØ º¸·Á´Ï ´Ù¸¥ À̽´°¡ À־. ³ªÁß¿¡ È®ÀÎÇÏ°í ¾÷µ¥ÀÌÆ® Çϵµ·Ï ÇÏ°Ú½À´Ï´Ù.
=> ¾÷µ¥ÀÌÆ® ÇÕ´Ï´Ù. ¾Ë·Á ÁֽŠ¹Ù¿Í °°ÀÌ, Çϱâ¿Í °°ÀÌ ¼³Á¤ÇÏ¿© ÇØ´ç ³»¿ª ÇØ°áµÇ¾ú½À´Ï´Ù. ~.~
ssh -p 10070 -L 443:subscription.rhsm.redhat.com:443 root@x.x.x.x


QnA
Á¦¸ñPage 3748/5682
2015-12   1488510   ¹é¸Þ°¡
2014-05   4951915   Á¤ÀºÁØ1
2014-12   3857   ³ªÆÄÀÌ°­½ÂÈÆ
2017-02   4255   ÄĸÍÁÖ´Ï
2019-06   2550   2cpumem
2020-08   4494   ÇູÇϼ¼
2023-09   1703   ÀüÁø
2013-07   8652   ÃÑ°¢
2016-03   4002   ±ô¹Ú±ô¹Ú°¡
2018-04   4294   ±è°Ç¿ì
2019-06   2706   ¸á¶û²Ã¸µ
2020-09   3413   º½µéÆÇ¿¡¼­´Ù
2018-05   3995   Àü¼³¼ÓÀǹ̡¦
2019-06   4445   ¹«¾Æ
2022-03   2342   ¾Óµå·¹ÁØ
2013-08   18498   ¶Ñ¶Ñ±è´ë¿ø
2022-03   2405   midmid
2016-03   6458   ±è¼º±â1
2018-05   5730   ¹«¾Æ
2023-10   1590   ¹Ú¹®Çü
2015-01   3665   ¾¾Çü
2018-05   5072   Mark