Closed devome closed 7 months ago
这是参考 https://manpages.debian.org/bookworm/openssh-client/ssh_config.5.en.html#GlobalKnownHostsFile 实现的,一般 /etc/ssh/ssh_known_hosts
是有读权限的。
你用 openssh 的 ssh 登录会报错,或者有告警吗?
这是参考 https://manpages.debian.org/bookworm/openssh-client/ssh_config.5.en.html#GlobalKnownHostsFile 实现的,一般
/etc/ssh/ssh_known_hosts
是有读权限的。你用 openssh 的 ssh 登录会报错,或者有告警吗?
原版ssh一切正常。
我周末抽空看看怎么兼容。
你现在可以在 ~/.ssh/config
中加一个配置项 GlobalKnownHostsFile
来规避。
GlobalKnownHostsFile
好的,GlobalKnownHostsFile配置暂时可以解决。
我举个倒子:
Host xxx
GlobalKnownHostsFile /dev/null
已修复
在debian 12 中安装了仓库主编译好的deb文件,普通非root用户使用
tssh xxx
命令(xxx已经配置在~/.ssh/config中了),然后提示以下信息:很奇怪,普通用户不是应该读取
~/.ssh/known_hosts
吗?另外,文件/etc/ssh/ssh_known_hosts
不存在,以及Debian 12的~/.ssh/known_hosts
是加密的,像这样:debug日志为:
自己先创建好
~/.ssh/known_hosts2
也没有用。