added ssh privkey when logging in a user. solution provided by @jdpaton.