Fixing password retrieval and pulling in the ssh key