Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在尝试添加gitlab ci以使用SSH executor构建我的项目时,我得到了一个错误";asn1:结构错误:长度中有多余的前导零“;_Ssh_Continuous Integration_Gitlab_Openstack - Fatal编程技术网

在尝试添加gitlab ci以使用SSH executor构建我的项目时,我得到了一个错误";asn1:结构错误:长度中有多余的前导零“;

在尝试添加gitlab ci以使用SSH executor构建我的项目时,我得到了一个错误";asn1:结构错误:长度中有多余的前导零“;,ssh,continuous-integration,gitlab,openstack,Ssh,Continuous Integration,Gitlab,Openstack,在查找此问题的原因时,我了解到这是由于密钥文件存在问题,大多数人更改ssh密钥以解决此问题。 然而,这不是我的选择,因为我有一个特定的openstack实例用于构建这个项目。我可以使用这个ssh密钥文件登录到它。 关于为什么只有gitlab executor才会出现这个问题以及如何解决这个问题,有什么建议吗 Running with gitlab-runner 10.4.0 (857480b6) on build config_api (7988f6db) Using SSH executo

在查找此问题的原因时,我了解到这是由于密钥文件存在问题,大多数人更改ssh密钥以解决此问题。 然而,这不是我的选择,因为我有一个特定的openstack实例用于构建这个项目。我可以使用这个ssh密钥文件登录到它。 关于为什么只有gitlab executor才会出现这个问题以及如何解决这个问题,有什么建议吗

Running with gitlab-runner 10.4.0 (857480b6)
  on build config_api (7988f6db)
Using SSH executor...
ERROR: Preparation failed: asn1: structure error: superfluous leading zeros in length
Will be retried in 3s ...
Using SSH executor...
ERROR: Preparation failed: asn1: structure error: superfluous leading zeros in length
Will be retried in 3s ...
Using SSH executor...
ERROR: Preparation failed: asn1: structure error: superfluous leading zeros in length
Will be retried in 3s ...
ERROR: Job failed (system failure): asn1: structure error: superfluous leading zeros in length
我的案例的解决方案(或解决方法)是创建一个新的ssh密钥对,并将新的公钥也添加到构建服务器中的授权密钥文件中。使用新的私钥,我再次注册了我的跑步者,它成功了

我使用的方法在此链接中介绍: