To make a Wi-Fi password, or change your current password, you'll need to access your router's settings page using a computer.
If you use SSH on your MacOS device, then you should know there is a built-in SSH connection manager that is easy to call up and use.