-
Notifications
You must be signed in to change notification settings - Fork 50
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
Is there a way to check if the ssh is open for business ? #42
Comments
You can think about the port forwarder like a nginx reverse proxy and the VM like a http backend. The port on gvproxy is always opened and does its best. But if the ssh service of the VM is not ready, it can't do much. |
But is there a way to "know" the IP address of the VM, so that one can check if port 22 is responding yet ? Or should we just issue
|
Yes! You can know 2 things: Which MAC addresses are connected to the switch with:
5a:94:ef:e4:0c:ee is connected on the first port (0 is the index of the first connection). Ask the DHCP to know which IP is attributed to which MAC address.
These 2 IP are handled by static lease defined in the code directly. |
Originally I was just hoping to be able to call But glad to hear that there is a way out, maybe it will improve in the future... |
@guillaumerose : so you might add a function, where one can query the (hard-coded) MAC address for the IP ? // Right now the mac address is hardcoded so that the host networking gives it a specific IP address. |
Yeah no good solution sorry :/
This API endpoint already exists. /leases, /cam, etc. |
Silly me, no use for the IP address since the network isn't reachable anyway. That's what the proxy / tunnel is for... |
Trying to dial the tunnel port, but it seems to be throwing errors and die ?
I could hardcode the VM IP, just hoping that there was a better way to test.
The text was updated successfully, but these errors were encountered: