Mailing List Archive

[Bug 3308] host resolve bug
https://bugzilla.mindrot.org/show_bug.cgi?id=3308

loic.did@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.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3308] host resolve bug [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3308

Darren Tucker <dtucker@dtucker.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |dtucker@dtucker.net

--- Comment #2 from Darren Tucker <dtucker@dtucker.net> ---
(In reply to loic.did from comment #0)
[...]
> "ssh debian@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@vps-1060b8b0.vps.ovh.net:22

> PROBLEM:
> nodejs modules (for exemple) use the user@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.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3308] host resolve bug [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3308

--- Comment #3 from loic.did@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.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3308] host resolve bug [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3308

loic.did@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.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3308] host resolve bug [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3308

--- Comment #4 from loic.did@gmail.com ---
As you said I configured 3 node modules with:
host: debian@vps-1060b8b0.vps.ovh.net
port: 22

Trigger the so called bug.

The "ssh ssh://debian@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.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3308] host resolve bug [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3308

Darren Tucker <dtucker@dtucker.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME

--- Comment #5 from Darren Tucker <dtucker@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.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs