我在构build服务器脚本中使用Git For Windows(不是msys或GitHub)。 我们有一个configuration了SSH访问密钥的自托pipeBitBucket存储库。 我试图通过命令行在我的构build脚本中执行初始克隆,并且因SSH错误/
这里是我的环境:
known_hosts
文件中 这是克隆操作期间来自SSH的Loglevel DEBUG3日志logging:
[exec] debug3: send packet: type 30 [exec] debug1: sending SSH2_MSG_KEX_ECDH_INIT [exec] debug1: expecting SSH2_MSG_KEX_ECDH_REPLY [exec] debug3: receive packet: type 31 [exec] debug1: Server host key: ssh-rsa SHA256:K7Y.. [exec] debug3: put_host_port: [xxxx]:7999 [exec] debug3: put_host_port: [xxxmyserverxxx.local]:7999 [exec] debug1: checking without port identifier [exec] debug1: read_passphrase: can't open /dev/tty: No such device or address [exec] Host key verification failed. [exec] fatal: Could not read from remote repository. [exec] [exec] Please make sure you have the correct access rights [exec] and the repository exists.
我不知道“不能打开/ dev / tty”问题是否是真正的交易断路器。 我甚至不知道/ dev / tty会在Windows命令窗口中等同于什么内容。
更令人沮丧的是,这种确切types的操作在另一个使用相同的SSH密钥对的回购协议上取得成功。 我可以看到configuration没有任何区别