Skip to content
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

IPv6 not accessible #1189

Closed
cruse123 opened this issue Dec 24, 2024 · 1 comment
Closed

IPv6 not accessible #1189

cruse123 opened this issue Dec 24, 2024 · 1 comment

Comments

@cruse123
Copy link

In my environment where public IPv4 is not available, the SSH service has to be exposed via IPv6. However the ssh server refuses the connections via IPv6.

Are there any plans on adding IPv6 support?

Thanks!

Reproducing the issue:
Server side:

$ docker run --rm --name warpgate -p 8888:8888 -p 2222:2222 ... (same as in Wiki)
$ docker exec -it warpgate bash
# apt-get update -y && apt-get install iproute2
# ss -tunlp

The output indicates the SSH daemon is only listening on IPv4 0.0.0.0 instead of IPv6 [::]

tcp              LISTEN            0                 1024                               0.0.0.0:2222                             0.0.0.0:*                users:(("warpgate",pid=1,fd=16))
tcp              LISTEN            0                 1024                               0.0.0.0:8888                             0.0.0.0:*                users:(("warpgate",pid=1,fd=18))

Client side:

$ ssh "user:machine@<server_ipv4_addr>" -p 2222
# Success!

$ ssh "user:machine@<server_ipv6_addr>" -p 2222
# Connection closed by <server_ipv6_addr> port 2222
@Eugeny
Copy link
Member

Eugeny commented Dec 25, 2024

Replacing 0.0.0.0 with [::] in the listen endpoints in the config file should do the trick:

....
ssh:
  listen: '[::]:2222'

@Eugeny Eugeny closed this as completed in d51d882 Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants