# How to create change-id?

**URL:** <https://forum.collaboraonline.com/t/how-to-create-change-id/4768>\
**Category:** Development\
**Created:** [June 12, 2026, 2:19pm UTC](https://forum.collaboraonline.com/t/how-to-create-change-id/4768 "2026-06-12T14:19:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Regina](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@Regina](https://forum.collaboraonline.com/u/Regina)\
**Post date:** [June 12, 2026, 2:19pm UTC](https://forum.collaboraonline.com/t/how-to-create-change-id/4768/1 "2026-06-12T14:19:04Z")

</div>

Now that I’ve finally managed to build a “Collabora Office classic” build, the next problem has cropped up. My patch requires a change-id. How to generate it?

The command `scp -p -P 29418 regina-henschel@gerrit.collaboraoffice.com:hooks/commit-msg .git/hooks/` does not work. I get the message

```auto
subsystem request failed on channel 0
scp: Connection closed

```

I have used the command in Git Bash in folder `engine`. Using it in folder `online` does neither work.

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [June 12, 2026, 2:50pm UTC](https://forum.collaboraonline.com/t/how-to-create-change-id/4768/2 "2026-06-12T14:50:46Z")

</div>

hi @Regina

Since OpenSSH 9.0, scp uses the SFTP protocol by default instead of the old “legacy SCP” protocol. Gerrit’s built-in SSH server does not implement an SFTP subsystem, so when your modern scp asks for it, the server refuses:

> subsystem request failed on channel 0  
> scp: Connection closed

Git Bash ships a recent OpenSSH, which is why you hit this.

`Fix 1: force the legacy protocol with -O`

Add the -O flag (capital letter O, for “old protocol”):

`scp -O -p -P 29418 regina-henschel@gerrit.collaboraoffice.com:hooks/commit-msg .git/hooks/`

That single flag is almost always all that is needed.

`Fix 2: download the hook over HTTPS instead`

If -O still gives you trouble, fetch the same hook over HTTPS instead:

```auto
curl -Lo .git/hooks/commit-msg https://gerrit.collaboraoffice.com/tools/hooks/commit-msg
chmod +x .git/hooks/commit-msg

```

Then make the hook stamp your existing commit with a real Change-Id:

```auto
git commit --amend --no-edit
git log -1

```

Either way, make sure the file ends up execut-p preserving mode on the scp.

---

<div class="post-metadata">

**Author:** ![Regina](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@Regina](https://forum.collaboraonline.com/u/Regina)\
**Post date:** [June 12, 2026, 3:49pm UTC](https://forum.collaboraonline.com/t/how-to-create-change-id/4768/3 "2026-06-12T15:49:44Z")

</div>

> [@darshan](#):
>
> Add the -O flag (capital letter O, for “old protocol”):
> 
> `scp -O -p -P 29418 regina-henschel@gerrit.collaboraoffice.com:hooks/commit-msg .git/hooks/`
> 
> That single flag is almost always all that is needed.

Yes, that works. Thank you.

The patch is now in [https://gerrit.collaboraoffice.com/c/online/+/4396](https://gerrit.collaboraoffice.com/c/online/+/4396).
