Gitosis 不接受主机名中的数字
我的计算机的主机名设置为“37MeanMachine”,我的密钥如下:
ssh-rsa AA.....==三十七@37MeanMachine
问题是,当我尝试使用以下命令初始化 gitosis 时这个密钥,我收到错误:
gitosis.init.InsecureSSHKeyUsername:用户名包含不允许的字符:'thirtySeven@37MeanMachine'
当我将密钥更改为
ssh-rsa AA..... == ThirdSeven@MeanMachine
即我从 ssh 密钥中的主机名中删除了“37”,它运行得很好并且密钥已初始化。 AFAIK,主机名包含数字是完全有效的,为什么我的情况会出现问题?这个问题的解决办法是什么?
My computer's host name is set to '37MeanMachine', and my key is like:
ssh-rsa AA.....== thirtySeven@37MeanMachine
The problem is that, when I try to initialize gitosis with this key, I get the error:
gitosis.init.InsecureSSHKeyUsername: Username contains not allowed characters: 'thirtySeven@37MeanMachine'
When I changed my key to
ssh-rsa AA.....== thirtySeven@MeanMachine
i.e. I removed '37' from my hostname in the ssh-key, it ran perfectly fine and the key initialized. AFAIK, it is completely valid for a hostname to have numbers, why am I having a problem in my case? And what is the solution to this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
主机名不应以数字开头。
请参阅 https://www.poweradmin.org/trac/wiki/Documentation/DNS-主机名
A hostname should not start with a digit.
See https://www.poweradmin.org/trac/wiki/Documentation/DNS-hostnames