Since we want to run two commands, use a temporary SSH agent to hold the key, so that the user only has to enter the password once.