create account

ssh not working/Connection refused on OrangePi/Debian by octav

View this thread on: hive.blogpeakd.comecency.com
· @octav ·
ssh not working/Connection refused on OrangePi/Debian
![Screenshot 2019-01-24 at 20.54.53.png](https://cdn.steemitimages.com/DQmZHgAAGuCDQnB7HaMStfxW24eqGDHf9nKvyPxAL62a1n9/Screenshot%202019-01-24%20at%2020.54.53.png)

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:

![Screenshot 2019-01-24 at 20.54.21.png](https://cdn.steemitimages.com/DQmVqVs374SehXtPr915zUttJemyDGWsoXtuM2JoRTsXt1D/Screenshot%202019-01-24%20at%2020.54.21.png)

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```
&nbsp;&nbsp;```mkdir /var/run/sshd```
&nbsp;&nbsp;```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!
👍  , ,
properties (23)
authoroctav
permlinkssh-not-working-connection-refused-on-orangepi-debian
categoryssh
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"}
created2019-01-24 19:04:30
last_update2019-01-24 19:04:30
depth0
children1
last_payout2019-01-31 19:04:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,507
author_reputation647,853,339,261
root_title"ssh not working/Connection refused on OrangePi/Debian"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id78,884,175
net_rshares2,114,316,306
author_curate_reward""
vote details (3)
@octav ·
After each apt-get upgrade / update you will need to call the `sudo systemctl enable ssh`
properties (22)
authoroctav
permlinkre-octav-ssh-not-working-connection-refused-on-orangepi-debian-20190124t214214207z
categoryssh
json_metadata{"tags":["ssh"],"app":"steemit/0.1"}
created2019-01-24 21:42:15
last_update2019-01-24 21:42:15
depth1
children0
last_payout2019-01-31 21:42:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length89
author_reputation647,853,339,261
root_title"ssh not working/Connection refused on OrangePi/Debian"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,889,419
net_rshares0