Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

ipv6环境docker部署,无法ssh接入ipv6资产,求救! #433

Open
cheat0916 opened this issue Jan 11, 2024 · 3 comments
Open

ipv6环境docker部署,无法ssh接入ipv6资产,求救! #433

cheat0916 opened this issue Jan 11, 2024 · 3 comments

Comments

@cheat0916
Copy link

我用的VC的kvm的ipv6小鸡,在docker中部署的next-terminal,都是按着官方文档来的,也开启了sshd。
想添加vps作为webssh使用,可是添加资产后无法连接,谷歌和ai帮不到我,求!

后来我安装了warp,next-terminal内添加v4资产就可以正常ssh接入了。但是v6依旧不行,同样的错误提示。
我又试着在v6地址前后添加“[]”,结果错误提示变成了:
“创建SSH客户端失败:dial tcp []:22: connect: cannot assign requested address”

下面是我部署next-terminal时的docker-compose.yml:

version: '3.3'
services:
  guacd:
    image: dushixiang/guacd:latest
    volumes:
      - ./data:/usr/local/next-terminal/data
    restart: always
    network_mode: host

  next-terminal:
    image: dushixiang/next-terminal:latest
    environment:
      DB: sqlite
      GUACD_HOSTNAME: guacd
      GUACD_PORT: 4822
      SSHD_ENABLE: "true"
    volumes:
      - /etc/localtime:/etc/localtime
      - ./data:/usr/local/next-terminal/data
      - ~/.ssh/id_rsa:/root/.ssh/id_rsa
    restart: always
    network_mode: host
@zhoujun0601
Copy link

同样的问题,没办法连接ipv6

@dushixiang
Copy link
Owner

请确认宿主机和容器是否分配了ipv6地址。

@iii80
Copy link

iii80 commented Aug 10, 2024

https://gitee.com/dushixiang/next-terminal/issues/IAFN6O
经测试,系统对IPV6支持非常差,希望尽快更新下,毕竟现在v6普及了,v4公网地址很少了。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants