Search this site

Metadata

Articles

Projects

Presentations

sshall again

So xapply -f doesn't cut it for when I want interactive ssh sessions, so I updated my sshall script to use the apply syntax instead of xargs - this lets me do

sshall

and actually get a login prompt. If I used xapply (as previously) it would complain about not being able to grab stdin (or a tty) because we were doing:

cat hostlist | xapply -f 'ssh ...'

This would give the error message (for each host):
project1 -
Pseudo-terminal will not be allocated because stdin is not a terminal.
The solution to this problem is varied. You'll probably need the -t option for ssh: ssh -t user@server will allocate a terminal for you on the remote server so console-based applications will work.

0 responses to 'sshall again'

Showing last 0 comments... (Click here to view all comments)


Leave a reply

You need javascript enabled to use this form. Anti-spam efforts ongoing. Also, if the comment doesn't show up, it's because the form expired. Go back and copy your comment, reload the form, and resubmit. Apologies if this is a hassle, I'm just playing with antispam methods right now. If this insists on not working, please email me about it.

Name (required)
E-mail (optional, if you want me to be able to email you back)
URL (also optional)
Comment: