0
lucas24007

How to connect via SSH on first boot ?

Recommended Posts

Hi everyone,

 

I'm using a Nanopi NEO2 as a NAS (link : https://www.friendlyarm.com/index.php?route=product/product&product_id=222) and it's provided with an armbian jessie version. I did try to upgrade to Stretch but I was missing some repositories. Now I'm trying to install a fresh Armbian Stretch version but on first boot SSH is not enabled.

 

How can I configure armbian ? I cannot connect keyboard/screen. Maybe there is another way to do it ? Other armbian/debian images ?

 

Does anyone have a solution ?

 

Share this post


Link to post
Share on other sites
2 hours ago, lucas24007 said:

Now I'm trying to install a fresh Armbian Stretch version but on first boot SSH is not enabled.


How long do you wait?

Share this post


Link to post
Share on other sites

I've tried to connect about 3 minutes after booting.

 

I can't find on the doc if SSH is supposed to be enabled out of the box or not :/

 

Thanks for your help !

Share this post


Link to post
Share on other sites
7 minutes ago, lucas24007 said:

I've tried to connect about 3 minutes after booting.

I can't find on the doc if SSH is supposed to be enabled out of the box or not :/

 

on a normal armbian-image SSH and DHCP is enabled.

So you have to check which DHCP-IP-address do you get for the Neo2 and then it shoudnt take more than a minute (when using a Class 10 microSD-card) before you can login via SSH

User: root

initial Password: 1234 (you will be forced to change it to a new one - and create a additional new user)

 

(Done this many times here with my 3x NanoPi Neo2, 1x NanoPi Neo and 1x NanoPi Neo Core2)

Share this post


Link to post
Share on other sites

Really strange. I've found which IP is linked to the mac address of the NanoPi Neo2 (btw the network component vendor is : Chiun Mai Communication Systems, Inc).

It responds to my ping but when I'm trying to connect via ssh as root it says :

ssh: connect to host 192.168.0.21 port 22: Connection refused

 

It seems that DHCP is enabled but not SSH.

 

I've used the image : Armbian_5.83_Nanopineo2_Debian_stretch_next_4.19.38.img

 

The ethernet port's led is on (orange).

 

Thanks for your help !

 

Share this post


Link to post
Share on other sites
59 minutes ago, lucas24007 said:

Thanks for your help !

 

I would suggest you to check some those typical problems https://forum.armbian.com/forum/31-sd-card-and-psu-issues/
 

59 minutes ago, lucas24007 said:

I've used the image : Armbian_5.83_Nanopineo2_Debian_stretch_next_4.19.38.img


Working without any problems. This is boot log: http://ix.io/1I5W, actual setup

Spoiler

 

and SSHing to the board works which means the problem is on your side. A problem with a board? Not sufficient powering? Bad cables? Bad SD card?

 

If you are powering the board from computer, then another serial console will pup-up. You can login there and see why network is not up. If system gets that far ...

[62873.971897] usb 1-3.4.1: new high-speed USB device number 24 using xhci_hcd
[62874.072937] usb 1-3.4.1: New USB device found, idVendor=0525, idProduct=a4a7
[62874.072947] usb 1-3.4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[62874.072954] usb 1-3.4.1: Product: Gadget Serial v2.4
[62874.072960] usb 1-3.4.1: Manufacturer: Linux 4.19.38-sunxi64 with musb-hdrc
[62874.074956] cdc_acm 1-3.4.1:2.0: ttyACM0: USB ACM device
sudo screen /dev/ttyACM0 115200

 

Share this post


Link to post
Share on other sites
4 hours ago, abigailrose said:

I'm having this same issue with the same image. Nmap shows the ssh port (22) as closed


We need serial console logs to understand more.

Share this post


Link to post
Share on other sites

If SSH is not enabled out of the box, you can mount the image, and manually enable SSH before booting from it. You will have to symlink the systemd script in order to enable. You can also edit sshd_config.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0