Fixes #3091 Ignoring trailing whitespaces in ssh keys
Fixes #3091 ssh public key issue with 1.0.7.3