SSH'ing not working with TrueNAS Core server

I’m running TrueNAS Core 13.0-U6.7.

I am able to SSH into my TrueNAS server from all of my other computers, except for one new client. The ssh keypairs are in ~/.ssh/authorized_keys on the server.

Here is the error I get when trying to SSH from this client (I changed it to 192.168.X.Y and the USERNAME):

# ssh -vvv USERNAME@192.168.X.Y -p 5432
OpenSSH_9.9p2, OpenSSL 3.3.3 11 Feb 2025
debug1: Reading configuration data /root/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 22: include /etc/ssh/ssh_config.d/*.conf matched no files
debug2: resolve_canonicalize: hostname 192.168.X.Y is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/root/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/root/.ssh/known_hosts2'
debug3: channel_clear_timeouts: clearing
debug3: ssh_connect_direct: entering
debug1: Connecting to 192.168.X.Y [192.168.X.Y] port 5432.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: connect to address 192.168.X.Y port 5432: Connection refused
ssh: connect to host 192.168.X.Y port 5432: Connection refused

When I look at /var/log/auth.log and /var/log/messages on the TrueNAS Server, I do not see any output as to why this is failing.

Any help is appreciated.

It was a firewall issue. Now it’s working.