BananaGonzo Posted October 6, 2018 Share Posted October 6, 2018 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? Link to comment Share on other sites More sharing options...
BananaGonzo Posted October 10, 2018 Author Share Posted October 10, 2018 Is there anyone to help me? Link to comment Share on other sites More sharing options...
martinayotte Posted October 10, 2018 Share Posted October 10, 2018 Do you have a USB-Serial-TTL dongle where you can see what is happening during boot process ? Maybe your SDCard got corrupted somehow ... Link to comment Share on other sites More sharing options...
BananaGonzo Posted October 10, 2018 Author Share Posted October 10, 2018 (edited) 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 October 10, 2018 by BananaGonzo Link to comment Share on other sites More sharing options...
martinayotte Posted October 10, 2018 Share Posted October 10, 2018 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" Link to comment Share on other sites More sharing options...
BananaGonzo Posted October 10, 2018 Author Share Posted October 10, 2018 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 Link to comment Share on other sites More sharing options...
BananaGonzo Posted October 11, 2018 Author Share Posted October 11, 2018 Hi there, I tried to connect but all I see in the console is like shown in the following picture: Settings are like in the Wiki: Baud 115200 Hardwareflowcontroll off Link to comment Share on other sites More sharing options...
martinayotte Posted October 11, 2018 Share Posted October 11, 2018 9 minutes ago, BananaGonzo said: but all I see in the console is like shown 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. Link to comment Share on other sites More sharing options...
BananaGonzo Posted October 12, 2018 Author Share Posted October 12, 2018 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? Link to comment Share on other sites More sharing options...
BananaGonzo Posted October 13, 2018 Author Share Posted October 13, 2018 Hi there, i found my mistake: I - somehow - inverted Rx and Tx of the FTDI... After uninverting it, everything went flawlessly. Link to comment Share on other sites More sharing options...
BananaGonzo Posted October 13, 2018 Author Share Posted October 13, 2018 But unfortunately ssh tell me connection refused :( The service is running. Link to comment Share on other sites More sharing options...
Igor Posted October 13, 2018 Share Posted October 13, 2018 30 minutes ago, BananaGonzo said: But unfortunately ssh tell me connection refused The service is running. If there was some corruption or unclean first run, do this:https://www.cyberciti.biz/faq/howto-regenerate-openssh-host-keys/ Link to comment Share on other sites More sharing options...
BananaGonzo Posted October 13, 2018 Author Share Posted October 13, 2018 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... 1 Link to comment Share on other sites More sharing options...
Recommended Posts