saltstack/salt — pull request #19202 by basepi (2014-12-22 22:45:58+00:00)
Title: Fix for salt-ssh with tty enabled

@techhat Test away!

If tty is enabled, we will now scp the shim to the user's home directory, execute it from there, and then remove it afterwards. This avoids the issue where the tty was mangling our STDIN (and thus, the shim).