Bug 2544 - Port names are not supported!
Summary: Port names are not supported!
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 6.9p1
Hardware: All All
: P5 trivial
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_7_9
  Show dependency treegraph
 
Reported: 2016-02-26 21:14 AEDT by Jan Gyselinck
Modified: 2018-10-19 17:17 AEDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Gyselinck 2016-02-26 21:14:57 AEDT
None of these options support port names (coming from f.e. /etc/services):
-D
-p
-L
-R
...

-L and -R should also support fetching port names from the remote '/etc/services'.

Right now, there's some syntax checking code that only accepts numeric values for a port. I expect this to still be an issue with the latest OpenSSH release (but I have not verified this).
Comment 1 Damien Miller 2018-10-10 15:56:43 AEDT
This should be fixed in OpenSSH 7.9

commit 2581333d564d8697837729b3d07d45738eaf5a54
Author: naddy@openbsd.org <naddy@openbsd.org>
Date:   Fri Oct 5 14:26:09 2018 +0000

    upstream: Support using service names for port numbers.
    
    * Try to resolve a port specification with getservbyname(3) if a
     numeric conversion fails.
    * Make the "Port" option in ssh_config handle its argument as a
     port rather than a plain integer.
    
    ok dtucker@ deraadt@
    
    OpenBSD-Commit-ID: e7f03633133205ab3dfbc67f9df7475fabae660d
Comment 2 Damien Miller 2018-10-19 17:17:20 AEDT
Close RESOLVED bugs with the release of openssh-8.0