fixing handling of ssh keys