[arm-allstar] New Rpi4B install, ssh login, connection refused

David McGough kb4fxc at inttek.net
Sat Apr 4 06:08:05 EDT 2020


Hi Alan,

Normally during a fresh install new ssh host keys get generated 
automatically.  In fact, the systemd startup scripts should automatically 
regenerate the host keys anytime the keys are missing.  For example, if 
you remove the keys with a command like: rm -f /etc/ssh/ssh_host*  and 
then restart, new keys should just "show up."

So, I'm not sure what happened during your installation? I've performed 
gazillions of installs and haven't seen this?

Did anything odd happen during initial setup where the system got power 
cycled?

It might be worth letting the system automatically regenerate the keys, by 
removing them. If that operation fails, something definitely went wrong 
during installation.

73, David KB4FXC



On Sat, 4 Apr 2020, "Al Beard via ARM-allstar" wrote:

> Hi all,
> 
> I installed on a Rpi4B 2Gb, 16Gb SanDisk SD card.
> Pi booted, obtained an IP address on my network
> 192.168.20.xxx but "ssh -p 222 root at dhcpxxx" fails,
> Connection Refused.
> RPi2-3-4_V1.6-01_Allstar.img.xz
> 
> OK I connect up the HDMI monitor and keyboard and login,
> the sshd daemon can't find the /etc/ssh/ssh_host_... key file.
> 
> I googled the problem, found:
> 
> For a generic method of doing this:
> (as root)
>         Delete old ssh host keys: rm /etc/ssh/ssh_host_*  (if they are there)
>         ssh-keygen -q -N "" -t dsa -f /etc/ssh/ssh_host_dsa_key
>         ssh-keygen -q -N "" -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key
>         ssh-keygen -q -N "" -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key
> 
> And a reboot and it's working.
> 
> Next, I note we are running 32bit code on a 64bit processor,
> Broadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz
> but "cat /proc/cpuinfo" shows:
> model name      : ARMv7 Processor rev 3 (v7l)
> Hardware        : BCM2835
> 
> Do we have plans for a 64bit system?
> 
> ---------------------------------------------------
> Alan VK2ZIW
> 
> OpenWebMail 2.53
> 
> _______________________________________________
> 
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> 
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
> 



More information about the ARM-allstar mailing list