The file is actually /etc/ssh/sshd_config.
(You probably meant that one. Works fine here though )
Maybe something else in the config is messed up or you have another line with “Port” in it somewhere?
Could you post the content of your config file?
/etc/ssh/ssh_config sets the client ssh port and other options for the client computer. this ssh port is which port the client TRANSMITS a query to the remote computer (usually a server)
/etc/ssh/sshd_config set the server (RECEIVING computer) ssh port to “listen” on for a request from the client. The extra d in sshD_config refers to a daemon which runs in the background to listen for incoming requests.
So it depends on what you are trying to do as to which config file to edit.
Bonus:
If you want to use different ports for different computers (servers) you may want to request from, here is an example;
Github’s ssh port is 22 (recieving) and I can’t change that.
My LAN server / NAS has it’s receiving ssh port set to 9876 (not really, just an example)
I believe that the * could also be the host name of my server.
So when I push something to github, it’s on port 22
When I send a request to my local server, it’s on port 9876
[EDIT]
Of course my local server is listening on port 9876
[/EDIT]