Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
deleted 24 characters in body
Source Link
Chris Davies
  • 128.1k
  • 16
  • 178
  • 324

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.

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.

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.

I have a question regarding remote access a machine via sshssh. I'm trying to ssh login tointo my linux machine from my mac and II've already setup the ssh-server on my ubuntu, and opened the 22 port and firewall22. However, I got these error message while connectingtrying 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.

I have a question regarding remote access a machine via ssh. I'm trying to ssh login to my linux machine from my mac and I already setup the ssh-server on my ubuntu, opened the 22 port and firewall. However, I got these error message while connecting

[@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.

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.

Source Link
Ge Yan
  • 1
  • 1
  • 1

ssh: port 22: Connection refused

I have a question regarding remote access a machine via ssh. I'm trying to ssh login to my linux machine from my mac and I already setup the ssh-server on my ubuntu, opened the 22 port and firewall. However, I got these error message while connecting

[@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.