aker-gateway / Aker

SSH bastion/jump host/jumpserver
Other
567 stars 81 forks source link

get Name or service not known #46

Closed leochan007 closed 6 years ago

leochan007 commented 6 years ago

TUI show the hosts correctly. but after pressing the "enter" key. get this error below.

File "/opt/aker/SSHClient.py", line 68, in connect self._socket.connect((ip, port)) File "/usr/lib64/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) socket.gaierror: [Errno -2] Name or service not known

is this DNS issue?

anazmy commented 6 years ago

You're right that's Dns, you can use /etc/hosts if you don't have a working nameserver

anazmy commented 6 years ago

closing this for now as answer been provided.