Closed blazejpawlak closed 4 years ago
Probably there is a better way to solve this, but I'm not a great bash expert.
Using -T
instead of -t -t
, like so
ssh -T -p $SSH_PORT $USER@$SERVER <<EOM
might be what you're looking for. I'm not familiar with stagecoach
but came across this issue while troubleshooting a similar problem of my own (unrelated to stagecoach
). See http://stackoverflow.com/questions/17900760/what-is-pseudo-tty-allocation-ssh-and-github.
Hope that helps and if it does, do let me know!
I've never seen this behavior, what OS are you deploying to?
Closing for inactivity.
I had to add additional flags to the ssh command in line 53, "-t -t" to be more specific. Otherwise I was getting the following error message:
Pseudo-terminal will not be allocated because stdin is not a terminal
The line looks like this now:
ssh -t -t -p $SSH_PORT $USER@$SERVER <<EOM