Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can't remote access BananaPi with SSH

Featured Replies

Hi guys,

today i wanted to access my BPi with armbian installed remote with SSH.  Terminal says: port 22: Connection refused. I'm able to ping the BPi. At least last week I was able to access the BPi with remote SSH.

When i connect it via HDMI i can see the boot process until it says loading kernel - then the screen turns all black and nothing happens anymore.

If I try to access some installed webservices, the browser says it can't connect.

 

What can I do?

  • Author

Hi martinayotte,

 

thank you very much for your answer. I do have a FTDI USB dongle and  a Atmel USPasp - what can i do with this? Do you have a Youtube Link for me?

 

How do I test the SD card for corruption?

 

Thanks in advance.

 

[€]: Or an Arduino if you want.

Edited by BananaGonzo

1 hour ago, BananaGonzo said:

FTDI USB dongle and  a Atmel USPasp

USPasp is useless but FTDI USB is OK : simply attach GND/TX/RX to BananaPi and open PuTTY at 115200 board, and powerup the BPi, you should see booting log until login prompt ...

1 hour ago, BananaGonzo said:

Youtube Link

I don't have any, but there are maybe some already ...

1 hour ago, BananaGonzo said:

SD card for corruption

if you are able to reach login prompt, log as root and do a "fsck.ext4 /dev/mmcblk0p1"

 

  • Author

Hi there,

 

ok, I'll try it today in the afternoon - thank you so much for your help! I'll give you a quick response until i reached something :-)

 

Bye

  • Author

Hi there,

 

I tried to connect but all I see in the console is like shown in the following picture:

 

1408091700a23a5cb2ec8qycw9.png

 

Settings are like in the Wiki:

 

Baud 115200

Hardwareflowcontroll off

  • Author
18 hours ago, martinayotte said:

This is what appears right at the beginning of fresh boot ?

It is almost sure that your SDCard is corrupted ...

Try another one with fresh image.

Right.

Ok, maybe.

I installed the freshest Armbian Bionic mainline kernel 4.14.y on a fresh formatted SD - same screen in the console as shown above. Is it just me?

16 hours ago, helper-dialog said:

Can't remote access BananaPi in short = crab, crabs walk sideways, you have to walk forward for it to work

What do you mean?

  • Author

Hi there,

 

i found my mistake: I - somehow - inverted Rx and Tx of the FTDI...

After uninverting it, everything went flawlessly.

  • Author
23 minutes ago, Igor said:

 

If there was some corruption or unclean first run, do this:
https://www.cyberciti.biz/faq/howto-regenerate-openssh-host-keys/

Thank you Igor - it seems that the service is not running on startup even there is an entry at /etc/init.d :-(

I even tried to set up a cronjob (@reboot).

 

Doesn't work :-(

 

This is what its look like after reboot (connected via serial):

 

root@bpii:~# /etc/init.d/ssh status
● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
root@bpii:~# 

 

 

Ok, seems that when I'm connected via serial it is in emergency mode - I have to shut it down completely (shutdown -h now) disconnect power and FTDI, and connect power again.

 

Now it works...:thumbup:

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.