spawn() but for ssh