Force tty allocation when connecting via ssh

fixes issue on jruby

[#65884152]