Fixes #5681: change class definition in ssh_key_distribution to prevent ...

...segfault
note that this message is not part of the PR