SSH utility functions for key manipulation