在原有的命令中加个 -O即可,如下所示:

scp -p -O -P 29418 sichadalawada@gerrit.sumtotalsystems.com:hooks/commit-msg "udac-agent/.git/hooks/"

参见

subsystem request failed on channel 0,scp: connection closed · Issue #1945 · PowerShell/Win32-OpenSSH · GitHub

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐