ssh key support for linux: intermediate code