Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot handle IPv6 addresses in -w list #160

Open
jadams41 opened this issue Nov 5, 2024 · 0 comments
Open

Cannot handle IPv6 addresses in -w list #160

jadams41 opened this issue Nov 5, 2024 · 0 comments

Comments

@jadams41
Copy link

jadams41 commented Nov 5, 2024

Trying to specify IPv6-format addresses seems to have trouble with the rcmd_type-specifying syntax:

A list of hosts may also be preceded by "user@" to specify a remote
username other than the default, or "rcmd_type:" to specify an alternate
rcmd connection type for these hosts.

I.e.:

> pdsh -R exec -w 2a03:5640:f13b:84::9299,2a03:5640:f13b:6::9a32 ssh -F /Users/ethanadams/.ssh/config.pdsh %h hostname
No such rcmd module "2a03"
pdsh@Ethans-MacBook-Pro: Failed to register rcmd "2a03" for "5640:f13b:84::9299"

I wasn't able to find any information about this, so I quickly looked through the source and it seems that there isn't any way to avoid having the ':'s in the IPv6 target addresses be treated as rcmd specifiers (other than by explicitly specifying rcmd prior to the IPv6 addr like -w <rcmd>:<ipv6_addr>,<rcmd>:<ipv6_addr>,...).

Was wondering if there was anything I missed here or if this indeed seems like unexpected behavior?


Version:

> pdsh -V
pdsh-2.35 (+readline)
rcmd modules: ssh,exec (default: ssh)
misc modules: dshgroup (*conflicting: netgroup)
[* To force-load a conflicting module, use the -M <name> option]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant