Normally , a CLIcommands like below sets port as wanted:
configure set service ssh port 2222 commit save exit
However, you're using port 161, which might already be in use.
Try to avoid messing with config files in /etc, these files might get overwritten by GUI / CLI changes or even on reboot.