PortGate

Resources · Troubleshooting · Q&A

A file hash changed and I did not deploy

The agent stores SHA-256 digests of four system files. A change means the file bytes changed, not that the app was deployed.

Check command

sudo sha256sum /etc/ssh/sshd_config

Copied.

The heartbeat sends SHA-256 digests, not file contents, for:

  • /etc/passwd
  • /etc/group
  • /etc/ssh/sshd_config
  • /etc/crontab

A changed digest means those bytes changed. Package updates, useradd, and an edit to sshd_config all do that.

Check the file you were alerted about

sudo sha256sum /etc/ssh/sshd_config
sudo diff -u /etc/ssh/sshd_config /etc/ssh/sshd_config.bak

If the change was yours, approve the new baseline in the server page. If it was not, restore the file from the backup you trust and reload SSH only after a second session is open.