aker-gateway / Aker

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

How to connect via ip address #104

Open Skurat opened 4 years ago

Skurat commented 4 years ago

After I clone Aker ssh gateway repo, I connected to host with aker (with idp = IPA), and saw list of hosts, but aker try connect to host via hostname, and return "[Errno -2] Name or service not known" . I need connect via ip address, how can I do it ?

EoleDev commented 4 years ago

Hi @Skurat, I you are using the json IDP, you may set the IP address in the hostname field. On the connection screen, it displays the server name, and then it would use the IP in place of the hostname during connection.

Skurat commented 4 years ago

Thanks you) But if I use idp IPA?)

EoleDev commented 4 years ago

Using IPA idp, you can't right now. As IPA always return hostnames. Why would you connect with IP ? If you have FreeIPA configured, you should have a DNS server which resolve your server's hostname ? May you describe a bit more your need ?

anazmy commented 4 years ago

@Skurat FreeIPA requires proper DNS setup - irrelevant to Aker presence - to function correctly.

Do all servers point to a nameserver that can resolve the hostnames stored in FreeIPA?