ssh 配置主机限制
ssh config host limits
我有一些问题 ~/.ssh/config.
我有 300 台主机,我需要以 root 身份而不是我自己的身份获得这些主机。
我编写了为我创建配置文件的脚本,它为我提供了四行配置文件:
host *
user me
host <here 300 hostnames seperated by space and in this same line all>
user root
当我想通过 ssh 连接到任何服务器时,我收到消息,我有一个 'bad configuration in line: 10' 或“...第 6 行”:/
wc -l .ssh/config
给我 4
当前的 OpenSSH 应该最多读取 4096 bytes long lines. But versions before OpenSSH 7.5 were reading only 1024 bytes, which might not be enough (commit)。
你有两种可能:
- 更新到 OpenSSH 7.5
将行剥离为不超过 1024 个字符的较短行,例如
host <here first 100 hostnames seperated by space and in this same line all>
user root
host <here another 100 hostnames ...>
user root
host <here another 100 hostnames ...>
user root
我有一些问题 ~/.ssh/config.
我有 300 台主机,我需要以 root 身份而不是我自己的身份获得这些主机。
我编写了为我创建配置文件的脚本,它为我提供了四行配置文件:
host *
user me
host <here 300 hostnames seperated by space and in this same line all>
user root
当我想通过 ssh 连接到任何服务器时,我收到消息,我有一个 'bad configuration in line: 10' 或“...第 6 行”:/
wc -l .ssh/config
给我 4
当前的 OpenSSH 应该最多读取 4096 bytes long lines. But versions before OpenSSH 7.5 were reading only 1024 bytes, which might not be enough (commit)。
你有两种可能:
- 更新到 OpenSSH 7.5
将行剥离为不超过 1024 个字符的较短行,例如
host <here first 100 hostnames seperated by space and in this same line all> user root host <here another 100 hostnames ...> user root host <here another 100 hostnames ...> user root