Apologies if this is indeed a duplicate; I did look for an answer but it left me with more questions.
I have set up a server, Ubuntu 16.04, to act as a git server for me and one other person to work on a project. Currently, port 22 (Soon I will reconfigure to another port for security) on the server and my firewall are configred correctly and it is open.
In order for a successful connection between the server and client wishing to SSH and clone repos, does the SSH port need to be open server-side and the client wishing to connect, or just the server?
My confusion iniitally is because of how TCP works; A configured port for SSH may use one assigned port for the server, and one assigned randomly by the client making the connection?
Many thanks for any help.
ufw
(UncomplicatedFireWall), and just useufw limit
on your SSH port.