Sann-X!
Members
-
Joined
-
Last visited
Reputation Activity
-
Sann-X! got a reaction from Sergio in SSH doesn't work on Orange Pi ZeroWorkaround for ssh issue (create one shot service/daemon to make proper sshd dir):
0. Log in under root
1. Create file:
touch /etc/systemd/system/create-ssh-dir.service
2. Grant access:
chmod 664 /etc/systemd/system/create-ssh-dir.service
3. Edit content file:
[Unit] Description=Creates sshd directory Before=ssh.service [Service] Type = oneshot ExecStart=mkdir -p /var/run/sshd [Install] WantedBy=multi-user.target 4. Enable service:
systemctl enable create-ssh-dir.service
5. Reboot