node-red / node-red-docker

Repository for all things Node-RED and Docker related
Apache License 2.0
481 stars 383 forks source link

ssh-keyscan failed, no more retries left #341

Closed songzh96 closed 1 year ago

songzh96 commented 1 year ago

Hi , when I run .docker-debian.sh,

Linux : arm32v7 Error Logs:

# vs-ssh.visualstudio.com:22 SSH-2.0-SSHBlackbox.10
# vs-ssh.visualstudio.com:22 SSH-2.0-SSHBlackbox.10
# vs-ssh.visualstudio.com:22 SSH-2.0-SSHBlackbox.10
# vs-ssh.visualstudio.com:22 SSH-2.0-SSHBlackbox.10
# vs-ssh.visualstudio.com:22 SSH-2.0-SSHBlackbox.10
ssh-keyscan failed, no more retries left
The command '/bin/sh -c ./known_hosts.sh /etc/ssh/ssh_known_hosts && rm /usr/src/node-red/known_hosts.sh' returned a non-zero code: 1
hardillb commented 1 year ago

What happens if you run the following command on your docker build machine?

ssh-keyscan -o 2022 source.developers.google.com

Also where in the world is the docker build machine?

songzh96 commented 1 year ago

Hi , this is feedback unknown option -- o usage: ssh-keyscan [-46cDHv] [-f file] [-p port] [-T timeout] [-t type] [host | addrlist namelist]

China

songzh96 commented 1 year ago
ssh-keyscan  2022 source.developers.google.com
source.developers.google.com: Connection closed by remote host
source.developers.google.com: Connection closed by remote host
source.developers.google.com: Connection closed by remote host
source.developers.google.com: Connection closed by remote host
source.developers.google.com: Connection closed by remote host
hardillb commented 1 year ago

Sorry, typo

The -o should be -p

I wonder if access to source.developers.google.com is blocked by the Chinese Government.

In that case I suggest you edit the know_hosts.sh file to remove the key import for that host.

hardillb commented 1 year ago

Remove lines 40 and 53 from the script to stop generating that fingerprint

songzh96 commented 1 year ago

image

Hi, I delte you said. but it not successed. it still error

hardillb commented 1 year ago

Please don't post images of code, post the actual code and format it (wrap it in tripple back ticks `)

You appear to have removed a lot more than I mentioned. You should ONLY remove line 40

    ssh-keyscan -p 2022 ${hosts_2022} >> ${known_hosts_file}

and line 53

256 SHA256:AGvEpqYNMqsRNIviwyk4J4HM0lEylomDBKOWZsBn434 [source.developers.google.com]:2022 (ECDSA)
songzh96 commented 1 year ago

it work's!!!! Thank you very much!!!

👍

Best Regards Songzh