manuparra / singularitycontainers-on-m1-arm64

This is a repository containing a ready-to-use environment for singularity in arm64 (Apple M1).
MIT License
15 stars 3 forks source link

ssh connection refused #2

Open dnharry opened 1 year ago

dnharry commented 1 year ago

Each time I try to ssh to the IMAGE, I receive the error prompt below "ssh: connect to host localhost port 2202:Connection refused"

I have the verified that ssh service is running and have been able to connect to the host from the IMAGE.

A verbose run with "ssh -v ..." presents a log with below

"nicholas@Nicholass-MacBook-Pro N ssh -v ska@localhost

8.6p1, LibreSSL 3.3.6 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/e matched no

files debug1: /etc/ssh/ssh_config line 54: Applying options for

debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling

debug1: Connecting to localhost port 22. debug1: Connection established.

debug1: identity file /Users/nicholas/.ssh/id_rsa type -1

debug1: identity file /Users/nicholas/.ssh/id_rsa-cert type -1

debug1: identity file /Users/nicholas/.ssh/id_dsa type -1 debug1: identity file /Users/nicholas/.ssh/id_dsa-cert type -1

debug1: identity file /Users/nicholas/.ssh/id_ecdsa type -1

debug1: identity file /Users/nicholas/.ssh/id_ecdsa-cert type -1 debug1: identity file /Users/nicholas/.ssh/id_ecdsa_sk type -1 debug1: identity file /Users/nicholas/.ssh/id_ecdsa_sk-cert type -1

debug1: identity file /Users/nicholas/.ssh/id_ed25519 type -1

debug1: identity file /Users/nicholas/.ssh/id_ed25519-cert type -1 debug1: identity file /Users/nicholas/.ssh/id_ed25519_sk type -1

debug1: identity file /Users/nicholas/.ssh/id_ed25519_sk-cert type -1

debug1: identity file /Users/nicholas/.ssh/id_xmss type -1

debug1: identity file /Users/nicholas/.ssh/id_xass-cert type -1 debug1: Local version string SSH-2.8-OpenSSH_8.6

kex_exchange_identification: Connection closed by remote host

Connection closed by ::1 port 22 Ck yinicholas@Nicholass-MacBook-Pro-% ssh -v -p 2282 ska@localhost

OpenSSH 8.6p1, LibreSSL 3.3.6

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/ matched no

files

debug1: /etc/ssh/ssh_config line 54: Applying options for debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling

debug1: Connecting to localhost port 2282. ssh: connect to host localhost port 2202: Connection refused)"

Please help

manuparra commented 1 year ago

Did you open the port within the tool ?

Weugene commented 1 year ago

Indeed it does not work. I specified the ports even ports to the internet. see pictures:

Screen Shot 2023-03-03 at 00 36 54 Screen Shot 2023-03-03 at 00 36 59

Also, there is no clipboard, there it is very hard to code in side it. Also, I need to install some packages, how to open access to the internet? I enabled ufw, and it still does not work.