fix ssh command and add exit to avoid gpg sig conflict