[Bug 3308] host resolve bug

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed May 5 08:22:42 AEST 2021


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@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.


More information about the openssh-bugs mailing list