[GH-ISSUE #164] docker部署,SSH连接提示“异常:ssh: no key found” #69

Closed
opened 2026-02-28 00:38:34 +03:00 by kerem · 4 comments
Owner

Originally created by @zydxhs on GitHub (Nov 30, 2023).
Original GitHub issue: https://github.com/team-ide/teamide/issues/164

镜像:teamide/teamide-server:latest
IMAGE ID: 36a20caab098

已添加 PublicKey。

/opt/teamide/log/server.log有如下错误信息:

[2023-11-30 10:01:37.031] [ERROR] [module/api.go:DoApi:306] [▒~D▒~P~F▒~S~M▒~\▒~B常] [{"action": "terminal/check", "useTime": 1, "error": "ssh: no key fouu
nd"}
teamide/internal/module.(*Api).DoApi
        /__w/teamide/teamide/internal/module/api.go:306
teamide/internal/web.(*Server).bindApi.func1
        /__w/teamide/teamide/internal/web/api.go:15
github.com/gin-gonic/gin.(*Context).Next
        /github/home/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
        /github/home/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
        /github/home/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.LoggerWithConfig.func1
        /github/home/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
        /github/home/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
        /github/home/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620
github.com/gin-gonic/gin.(*Engine).ServeHTTP
        /github/home/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576
net/http.serverHandler.ServeHTTP
        /__t/go/1.21.4/x64/src/net/http/server.go:2938
net/http.(*conn).serve
        /__t/go/1.21.4/x64/src/net/http/server.go:2009]
Originally created by @zydxhs on GitHub (Nov 30, 2023). Original GitHub issue: https://github.com/team-ide/teamide/issues/164 镜像:teamide/teamide-server:latest IMAGE ID: 36a20caab098 已添加 PublicKey。 `/opt/teamide/log/server.log`有如下错误信息: ```txt [2023-11-30 10:01:37.031] [ERROR] [module/api.go:DoApi:306] [▒~D▒~P~F▒~S~M▒~\▒~B常] [{"action": "terminal/check", "useTime": 1, "error": "ssh: no key fouu nd"} teamide/internal/module.(*Api).DoApi /__w/teamide/teamide/internal/module/api.go:306 teamide/internal/web.(*Server).bindApi.func1 /__w/teamide/teamide/internal/web/api.go:15 github.com/gin-gonic/gin.(*Context).Next /github/home/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1 /github/home/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:102 github.com/gin-gonic/gin.(*Context).Next /github/home/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/gin-gonic/gin.LoggerWithConfig.func1 /github/home/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/logger.go:240 github.com/gin-gonic/gin.(*Context).Next /github/home/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest /github/home/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620 github.com/gin-gonic/gin.(*Engine).ServeHTTP /github/home/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 net/http.serverHandler.ServeHTTP /__t/go/1.21.4/x64/src/net/http/server.go:2938 net/http.(*conn).serve /__t/go/1.21.4/x64/src/net/http/server.go:2009] ```
kerem closed this issue 2026-02-28 00:38:34 +03:00
Author
Owner

@zydxhs commented on GitHub (Nov 30, 2023):

已添加的数据库连接、SSH连接 莫名丢失 了;
重新登录,再次添加 SSH 后,不添加 PublicKey,可以连接了。

<!-- gh-comment-id:1833014216 --> @zydxhs commented on GitHub (Nov 30, 2023): 已添加的数据库连接、SSH连接 **_莫名丢失_** 了; 重新登录,再次添加 SSH 后,不添加 PublicKey,可以连接了。
Author
Owner

@team-ide commented on GitHub (Dec 4, 2023):

PublicKey一般连接跳板机时候使用 通常直接用 用户名密码即可,数据丢失是什么意思,点击保存后工具箱面板中没有了吗

<!-- gh-comment-id:1838542347 --> @team-ide commented on GitHub (Dec 4, 2023): PublicKey一般连接跳板机时候使用 通常直接用 用户名密码即可,数据丢失是什么意思,点击保存后工具箱面板中没有了吗
Author
Owner

@selfly commented on GitHub (Dec 12, 2023):

PublicKey一般连接跳板机时候使用 通常直接用 用户名密码即可,数据丢失是什么意思,点击保存后工具箱面板中没有了吗

首次使用,上传PublicKey同样遇到 ssh: no key found
这个PublicKey搞的我很疑惑,服务器本身只能使用密钥登录,工具没有使用密钥的地方,以为不支持,只有上传这个PublicKey。
可是登录的时候使用的不应该是私钥吗,目标服务器上的才是公钥啊,尝试上传私钥后终于连接成功。
这个PublicKey有误导性,如果是搭建服务当跳板机使用,这个应该是『公用的私钥』,而不是ssh中的 PublicKey。

<!-- gh-comment-id:1851543903 --> @selfly commented on GitHub (Dec 12, 2023): > PublicKey一般连接跳板机时候使用 通常直接用 用户名密码即可,数据丢失是什么意思,点击保存后工具箱面板中没有了吗 首次使用,上传PublicKey同样遇到 ssh: no key found 这个PublicKey搞的我很疑惑,服务器本身只能使用密钥登录,工具没有使用密钥的地方,以为不支持,只有上传这个PublicKey。 可是登录的时候使用的不应该是私钥吗,目标服务器上的才是公钥啊,尝试上传私钥后终于连接成功。 这个PublicKey有误导性,如果是搭建服务当跳板机使用,这个应该是『公用的私钥』,而不是ssh中的 PublicKey。
Author
Owner

@team-ide commented on GitHub (Dec 12, 2023):

不好意思啊 这里 标签名写错了 应该是 PrivateKey(通常跳板机需要的密钥文件),新版本已修复

<!-- gh-comment-id:1851788364 --> @team-ide commented on GitHub (Dec 12, 2023): 不好意思啊 这里 标签名写错了 应该是 PrivateKey(通常跳板机需要的密钥文件),新版本已修复
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/teamide-team-ide#69
No description provided.