macOS X Mojave 10.14.2, Kernel Darwin 18.2.0
Want to change 22 port listening for incoming SSH connections for any from 2222x further for security reasons.
Changing /etc/ssh/sshd_config make no sense..
This Methods describing before doesn't works too for me on Mojave
Any suggestions where is the port settings I can change?
/etc/ssh/sshd_config:
# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# SSH v2
Protocol 2
Port 2222
AddressFamily inet
#ListenAddress 0.0.0.0
#ListenAddress ::
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
client's /etc/ssh/ssh_config:
Host *
Protocol 2
Port 2222
SendEnv LANG LC_*
port listening on sshd:
MBP:.ssh user$ > sudo lsof -iTCP -sTCP:LISTEN -n -P
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
launchd 1 root 8u IPv6 0xad7e82fd153731a7 0t0 TCP *:445 (LISTEN)
launchd 1 root 12u IPv4 0xad7e82fd153798e7 0t0 TCP *:445 (LISTEN)
launchd 1 root 14u IPv6 0xad7e82fd22020067 0t0 TCP *:22 (LISTEN)
launchd 1 root 20u IPv4 0xad7e82fd2eeb3f67 0t0 TCP *:22 (LISTEN)
launchd 1 root 24u IPv6 0xad7e82fd153731a7 0t0 TCP *:445 (LISTEN)
launchd 1 root 26u IPv6 0xad7e82fd15373767 0t0 TCP *:548 (LISTEN)
launchd 1 root 28u IPv4 0xad7e82fd153798e7 0t0 TCP *:445 (LISTEN)
launchd 1 root 29u IPv6 0xad7e82fd22020067 0t0 TCP *:22 (LISTEN)
launchd 1 root 33u IPv4 0xad7e82fd15378f67 0t0 TCP *:548 (LISTEN)
launchd 1 root 43u IPv6 0xad7e82fd15373767 0t0 TCP *:548 (LISTEN)
launchd 1 root 44u IPv4 0xad7e82fd15378f67 0t0 TCP *:548 (LISTEN)
launchd 1 root 47u IPv4 0xad7e82fd2eeb3f67 0t0 TCP *:22 (LISTEN)
kdc 87 root 5u IPv6 0xad7e82fd15372be7 0t0 TCP *:88 (LISTEN)
kdc 87 root 7u IPv4 0xad7e82fd15377c67 0t0 TCP *:88 (LISTEN)