 Try calling `sudo systemctl enable ssh` <sub>(based on https://askubuntu.com/a/892449)</sub> to enable ssh at startup. If this does not work, proceed:  The best option is to check for: `sudo service ssh status` In my case, the status of the ssh was inactive *ssh active: false "start-limit-hit"* Had to check sshd -T for the problems. Sshd did not work so had to: `sudo mkdir -p /var/run/sshd` <sub>(based on https://github.com/ansible/ansible-container/issues/141)</sub> Or, at startup, in the */etc/rc.local* file: ```if [ ! -d /var/run/sshd ]; then``` ```mkdir /var/run/sshd``` ```chmod 0755 /var/run/sshd``` ```fi```<sub>(based on https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/45234)</sub> <br> After running again the sshd -T command, *"Could not load host key /etc/ssh/ssh_host_rsa_key"* ran: `ssh-keygen -t rsa -b 4096` and `/usr/bin/ssh-keygen -A` <sub>(based on https://askubuntu.com/a/600585)</sub> <br> ssh Still does not start at startup, but calling `sudo service ssh start` seems to start ssh <br> Called `sudo systemctl enable ssh` <sub>(based on https://askubuntu.com/a/892449)</sub> to enable ssh at startup. - Best of luck!
author | octav |
---|---|
permlink | ssh-not-working-connection-refused-on-orangepi-debian |
category | ssh |
json_metadata | {"tags":["ssh","debian","orangepi","coding","armbian"],"image":["https://cdn.steemitimages.com/DQmZHgAAGuCDQnB7HaMStfxW24eqGDHf9nKvyPxAL62a1n9/Screenshot%202019-01-24%20at%2020.54.53.png","https://cdn.steemitimages.com/DQmVqVs374SehXtPr915zUttJemyDGWsoXtuM2JoRTsXt1D/Screenshot%202019-01-24%20at%2020.54.21.png"],"links":["https://askubuntu.com/a/892449","https://github.com/ansible/ansible-container/issues/141","https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/45234","https://askubuntu.com/a/600585"],"app":"steemit/0.1","format":"markdown"} |
created | 2019-01-24 19:04:30 |
last_update | 2019-01-24 19:04:30 |
depth | 0 |
children | 1 |
last_payout | 2019-01-31 19:04:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,507 |
author_reputation | 647,853,339,261 |
root_title | "ssh not working/Connection refused on OrangePi/Debian" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 0 |
post_id | 78,884,175 |
net_rshares | 2,114,316,306 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
jadabug | 0 | 1,336,686,946 | 1% | ||
ezravandi | 0 | 454,747,454 | 1% | ||
hdu | 0 | 322,881,906 | 1% |
After each apt-get upgrade / update you will need to call the `sudo systemctl enable ssh`
author | octav |
---|---|
permlink | re-octav-ssh-not-working-connection-refused-on-orangepi-debian-20190124t214214207z |
category | ssh |
json_metadata | {"tags":["ssh"],"app":"steemit/0.1"} |
created | 2019-01-24 21:42:15 |
last_update | 2019-01-24 21:42:15 |
depth | 1 |
children | 0 |
last_payout | 2019-01-31 21:42:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 89 |
author_reputation | 647,853,339,261 |
root_title | "ssh not working/Connection refused on OrangePi/Debian" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 78,889,419 |
net_rshares | 0 |