GitoSinit错误|回溯(最近一次调用)

2024-05-14 21:41:02 发布

您现在位置:Python中文网/ 问答频道 /正文

伙计们,我在设置gitosis时遇到了一些错误,我认为这是某种未安装的python依赖关系

这是我的输出

git@ubuntu-server ~ % sudo -H -u git gitosis-init < /home/git/cs8898_windows7_21.07.2014.pub
Traceback (most recent call last):
  File "/usr/local/bin/gitosis-init", line 9, in <module>
    load_entry_point('gitosis==0.2', 'console_scripts', 'gitosis-init')()
  File "/usr/local/lib/python2.7/dist-packages/gitosis-0.2-py2.7.egg/gitosis/app.py", line 24, in run
    return app.main()
  File "/usr/local/lib/python2.7/dist-packages/gitosis-0.2-py2.7.egg/gitosis/app.py", line 38, in main
    self.handle_args(parser, cfg, options, args)
  File "/usr/local/lib/python2.7/dist-packages/gitosis-0.2-py2.7.egg/gitosis/init.py", line 121, in handle_args
    user = ssh_extract_user(pubkey)
  File "/usr/local/lib/python2.7/dist-packages/gitosis-0.2-py2.7.egg/gitosis/init.py", line 39, in ssh_extract_user
    raise InsecureSSHKeyUsername(repr(user))
gitosis.init.InsecureSSHKeyUsername: Username contains not allowed characters: '----'

如果能得到一些提示就好了,我自己也会试试的


Tags: inpygitappinitegglibpackages
1条回答
网友
1楼 · 发布于 2024-05-14 21:41:02

此错误来自^{}

def ssh_extract_user(pubkey):
    _, user = pubkey.rsplit(None, 1)
    if ssh.isSafeUsername(user):
        return user
    else:
        raise InsecureSSHKeyUsername(repr(user))

这意味着您的公共密钥文件的内容不是abcd...(long_key)...xxxxx= yourName,而是包含在的末尾。在

清理其内容或重新生成密钥。在

相关问题 更多 >

    热门问题