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

IPv6 host address processing broken #96

Open
GoogleCodeExporter opened this issue Mar 10, 2016 · 0 comments
Open

IPv6 host address processing broken #96

GoogleCodeExporter opened this issue Mar 10, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

This is a bug report forwarded from Debian, see 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741537

If possible, include 741537-forwarded@bugs.debian.org in the correspondence.

The handling of IPv6 addresses is broken since the ``parse_host_entry()``
function in ``psshutil.py`` thinks the colons in it are an indication for a
port and the last component is taken apart.  Enclosing the address in brackets
doesn't work either because the host name resolution includes the brackets
around the IP address.

(A workaround is sticking a ``:22`` at the end of addresses with no port, but
it results in non-standard addresses.)

pssh should at least allow to specify IPv6 addresses enclosed in brackets
(ideally without brackets if no port is specified).  IPv6 addresses can be
identified with a proper regular expression or because they have at least
two colons.

Original issue reported on code.google.com by and...@pollock.id.au on 12 May 2014 at 12:08

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

No branches or pull requests

1 participant