https://bugzilla.mindrot.org/show_bug.cgi?id=3308
Bug ID: 3308
Summary: DNS resolve bug
Product: Portable OpenSSH
Version: 7.9p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: loic.did at gmail.com
Created attachment 3508
--> https://bugzilla.mindrot.org/attachment.cgi?id=3508&action=edit
screenshot of the bug on debian 10 with 7.9p1
"ssh debian at vps-1060b8b0.vps.ovh.net" resolve properly
BUT
"ssh debian at vps-1060b8b0.vps.ovh.net:22" doesn't :
"ssh: Could not resolve hostname vps-1060b8b0.vps.ovh.net:22"
It works using -p
"ssh debian at vps-1060b8b0.vps.ovh.net -p 22" resolve properly
PROBLEM:
nodejs modules (for exemple) use the user at host:port methode.
ALSO TESTED ON Windows 10 with 8.1p1 and 7.7p1
Can't
--
You are receiving this mail because:
You are watching the assignee of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=3308 --- Comment #1 from loic.did at gmail.com --- Also can't resolve the format ip:port -- You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=3308
loic.did at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|DNS resolve bug |host resolve bug
--
You are receiving this mail because:
You are watching the assignee of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=3308
Darren Tucker <dtucker at dtucker.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dtucker at dtucker.net
--- Comment #2 from Darren Tucker <dtucker at dtucker.net> ---
(In reply to loic.did from comment #0)
[...]> "ssh debian at vps-1060b8b0.vps.ovh.net:22" doesn't :
> "ssh: Could not resolve hostname vps-1060b8b0.vps.ovh.net:22"
Why do you think that should work? It's not a valid DNS name and
ssh(1) does not list it as a supported way of specifying the port). If
you want to use the URI syntax that does allow a port after a colon you
need to specify the "ssh:" scheme prefix (this was added in OpenSSH
7.6):
ssh ssh://debian at vps-1060b8b0.vps.ovh.net:22
> PROBLEM:
> nodejs modules (for exemple) use the user at host:port methode.
If nodejs is invoking ssh in a way that's not supported that sounds
like a problem with nodejs. You could configure around it by adding
something like this to your ~/.ssh/config file:
Host vps-1060b8b0.vps.ovh.net:22
Hostname vps-1060b8b0.vps.ovh.net
Port 22
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=3308 --- Comment #3 from loic.did at gmail.com --- Created attachment 3509 --> https://bugzilla.mindrot.org/attachment.cgi?id=3509&action=edit A screenshot showing how I should do according to the help -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=3308
loic.did at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #3509|A screenshot showing how I |Forget This one I just
description|should do according to the |check the man page to
|help |understand why it didn't
| |work
Attachment #3509|0 |1
is obsolete| |
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=3308 --- Comment #4 from loic.did at gmail.com --- As you said I configured 3 node modules with: host: debian at vps-1060b8b0.vps.ovh.net port: 22 Trigger the so called bug. The "ssh ssh://debian at vps-1060b8b0.vps.ovh.net:22" does work but not sure I can get a use of it since I can also use the arguement P but not used by the nodejs modules. Anyway I found a node module that works (at least for the connection). And as you said the host:port format can only be used while following ssh:// it's written on the man page but as I don't have man installed I used the help that doesn't provide the format. The help isn't really helpful since I can't understand much with it but it's my fault to not have checked the man page before posting. I think the help needs and update to provide more information since I think I'm not the only that have or will have this problem. Sorry that I took your time for that. -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=3308
Darren Tucker <dtucker at dtucker.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #5 from Darren Tucker <dtucker at dtucker.net> ---
The help (and synopsis) say:
usage: ssh [...] destination [command]
and the man page expands on what format the destination can take:
ssh connects and logs into the specified destination, which may be
specified as either [user@]hostname or a URI of the form
ssh://[user@]hostname[:port]
The man page is about 50KB so there's a limit to how much of it we can
cram into the usage and synopsis.
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=3308
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #6 from Damien Miller <djm at mindrot.org> ---
closing bugs resolved before openssh-8.9
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.