Solving ssh-connect error in VSCode

Problem

When you try to Remote SSH-connect you get this message:

[13:49:17.132] Checking ssh with "ssh -V"
[13:49:17.137] Finding installed ssh failed: spawn UNKNOWN
[13:49:17.138] Resolver error: Error: spawn UNKNOWN
	at ChildProcess.spawn (node:internal/child_process:412:11)

Visual Studio Code can't find SSH program

How to fix it

Extensions, Remote - SSH extension, settings

Remote.SSH: Path
An absolute path to the SSH executable. When empty, it will use "ssh" on the path or in common install locations.

Set absolute path to your ssh program