Within pssh, you have to do -x '-tt' rather than -x '-t' to make ssh
actually allocate a pseudo terminal.
> (Stderr: Pseudo-terminal will not be allocated because stdin is not a
> terminal.). Is there a way of doing this? Preferably I'd give the sudo
> password once which is then used across the cluster.
> Otherwise pssh is exactly what I want!
Have you tried using the -A option? This would require you to give the
root password rather than the user's password, so the behavior is a
little different than you describe. Likewise, you could also consider
setting up ssh keys so that you can login as root without a password.
--
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55 8012 AB4D 6098 8826 6868
The behavior of ssh by itself can be a mystery. When there's another
tool between it and you (and yet another program running remotely), it
can be really hard to track down what's going on.
> By the way, would it be possible to run a command on the remote servers in
> the background? So, issue the command and detach?
You might consider looking at `screen` or at the `disown` builtin,
depending on what you're trying to do. There are a bunch of other tools
out there, too, so please report back if you find something that works
perfectly for you.