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

启动sshd服务失败: read /root/.ssh/id_rsa: is a directory #421

Open
Chivenh opened this issue Dec 13, 2023 · 1 comment
Open

启动sshd服务失败: read /root/.ssh/id_rsa: is a directory #421

Chivenh opened this issue Dec 13, 2023 · 1 comment

Comments

@Chivenh
Copy link

Chivenh commented Dec 13, 2023

1.3.9 版本 参照文档中: 开启SSHD服务 配置
启动报错.

fatal log/logger.go:146 启动sshd服务失败: read /root/.ssh/id_rsa: is a directory
next-terminal/server/log.Fatal
/app/server/log/logger.go:146
next-terminal/server/sshd.sshd.Serve
/app/server/sshd/sshd.go:147

@dushixiang
Copy link
Owner

1.3.9 版本 参照文档中: 开启SSHD服务 配置 启动报错.

fatal log/logger.go:146 启动sshd服务失败: read /root/.ssh/id_rsa: is a directory next-terminal/server/log.Fatal /app/server/log/logger.go:146 next-terminal/server/sshd.sshd.Serve /app/server/sshd/sshd.go:147

因为你的宿主机没有生成过 ssh 私钥,你可以用 ssh-keygen 来生成一个默认的。

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