apostrophecms / stagecoach

Painlessly deploy node.js applications to your staging and production servers. Use a standard VPS or dedicated server to host both Node and traditional Apache-based websites. Pairs nicely with nginx and mechanic.
306 stars 29 forks source link

Pseudo-terminal will not be allocated because stdin is not a terminal #13

Closed blazejpawlak closed 4 years ago

blazejpawlak commented 10 years ago

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

blazejpawlak commented 10 years ago

Probably there is a better way to solve this, but I'm not a great bash expert.

chauncey-garrett commented 9 years ago

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!

boutell commented 8 years ago

I've never seen this behavior, what OS are you deploying to?

abea commented 4 years ago

Closing for inactivity.