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

...segfault