I have a question regarding remote access a machine via ssh. I'm trying to ssh into my linux machine from my mac and I've already setup the ssh-server on my ubuntu and opened the port 22. However, I got these error message while trying to connect:
[@Ges-MacBook ~]->ssh <username>@<remote machine's ipv4> -vvv
OpenSSH_8.6p1, LibreSSL 2.7.3
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug2: resolve_canonicalize: hostname <remote machine's ipv4> is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/geyan/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/geyan/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug3: ssh_connect_direct: entering
debug1: Connecting to <remote machine's ipv4> [<remote machine's ipv4>] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: connect to address <remote machine's ipv4> port 22: Connection refused
ssh: connect to host <remote machine's ipv4> port 22: Connection refused
What's the problem here and how to fix it?
Thank you.