Support loading SSH keys from memory

Issue #908.