by salted-fry · 8y ago · 0 comments
$ telnet localhost ssh
Trying ::1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_7.7
Obviously, it's just getting translated from ssh to 22 under-the-hood. I'm not sure who's doing the translation, though.~ grep ssh /etc/services ssh 22/tcp # SSH Remote Login Protocol
And /etc/nsswitch.conf is configured to look at 'files' to see which ports map to which services.