为什么 pssh 命令不起作用?

Sam*_*mat 24 command-line bash

我的 Ubuntu 11.10 x64 系统中安装了 pssh 包。我可以通过调用 parallel-ssh 来运行程序 但是, pssh 给了我

$ pssh
No command 'pssh' found, did you mean:
 Command 'bssh' from package 'avahi-ui-utils' (universe)
 Command 'cssh' from package 'clusterssh' (universe)
 Command 'ssh' from package 'openssh-client' (main)
 Command 'posh' from package 'posh' (universe)
 Command 'pdsh' from package 'pdsh' (universe)
 Command 'mssh' from package 'mssh' (universe)
 Command 'zssh' from package 'zssh' (universe)
 Command 'rssh' from package 'rssh' (universe)
 Command 'ppsh' from package 'ppsh' (universe)
 Command 'push' from package 'heimdal-clients' (universe)
pssh: command not found
Run Code Online (Sandbox Code Playgroud)

为什么会发生这种情况,让 pssh 命令正常工作的正确方法是什么?

PS 我知道我可以创建名为 /usr/bin/pssh 的链接,链接到 /usr/bin/parallel-ssh 但这些对我来说似乎很脏。:(

and*_*dol 37

关于原因,请参阅 /usr/share/doc/pssh/README.Debian。

To avoid any conflicts with the putty package, all of the programs have been
renamed.

parallel-ssh is pssh
parallel-scp is pscp
parallel-rsync is prsync
parallel-nuke is pnuke
parallel-slurp is pslurp
Run Code Online (Sandbox Code Playgroud)

关于该符号链接,一个稍微简洁的解决方案是创建 /usr/local/bin/pssh 符号链接并让它指向 /usr/bin/parallel-ssh。除了 /usr/local/ 之外,通常最好将 /usr/ 的内容留给包管理器。默认情况下 /usr/local/bin 也是 PATH 环境的一部分。


lga*_*rzo 12

试试parallel-ssh吧,改名了。

来自包装说明的报价:

 The package contains:
 .
  - Parallel ssh (parallel-ssh, upstream calls it pssh), executes commands on
    multiple hosts in parallel
  - Parallel scp (parallel-scp, upstream calls it pscp), copies files to
    multiple remote hosts in parallel
  - Parallel rsync (parallel-rsync, upstream calls it prsync), efficiently
    copies files to multiple hosts in parallel
  - Parallel nuke (parallel-nuke, upstream calls it pnuke), kills processes on
    multiple remote hosts in parallel
  - Parallel slurp (parallel-slurp, upstream calls it pslurp), copies files
    from multiple remote hosts to a central host in parallel
 .
 These tools are good for controlling large collections of nodes, where faster
 alternatives such as gexec and pcp are not available.
Run Code Online (Sandbox Code Playgroud)