fix up ssh key condition and command