Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

ssh -t flag #8

Open
ch604 opened this issue Aug 20, 2013 · 2 comments
Open

ssh -t flag #8

ch604 opened this issue Aug 20, 2013 · 2 comments

Comments

@ch604
Copy link
Collaborator

ch604 commented Aug 20, 2013

simulates a tty environment so you dont get "stdin is not a tty" errors. i recommend implementing it 😃

@defenestration
Copy link
Owner

I had put this in initially, but found there was some weirdness going on when piping content to/through ssh, plus it would still generate some different error message of some kind? It has been a while so I don't recall exactly what the issues or errors were 👴

I can try to reimplement, probably give ssh some variable for extra parameters and try it again.

@ch604
Copy link
Collaborator Author

ch604 commented Aug 22, 2013

i use ssh -q presently for my script and it seems to work well; i had originally used ssh -qt, but found that i didnt need the -t when sshing to plesk for some raisin, and piping still works:

echo -e "${purple}Copying key to remote server...${noclr}"
cat ~/.ssh/id_rsa.pub | ssh -q $target -p$port "cp -rp ~/.ssh/authorized_keys{,.syncbak} ; mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
ssh -q $target -p$port "echo 'Connected!'; cat /etc/hosts| grep $target "

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants