mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-26 19:47:05 +02:00
ssh is a directory (#2807)
This commit is contained in:
@@ -139,7 +139,7 @@ if [ "$1" = "restore" ]; then
|
|||||||
if [ -d "${DEFAULTBACKUPBASEDIR}/ssh" ]; then
|
if [ -d "${DEFAULTBACKUPBASEDIR}/ssh" ]; then
|
||||||
|
|
||||||
# restore sshd host keys
|
# restore sshd host keys
|
||||||
sudo rm /etc/ssh/*
|
sudo rm -r /etc/ssh/*
|
||||||
sudo cp -r $DEFAULTBACKUPBASEDIR/ssh/* /etc/ssh/
|
sudo cp -r $DEFAULTBACKUPBASEDIR/ssh/* /etc/ssh/
|
||||||
sudo chown -R root:root /etc/ssh
|
sudo chown -R root:root /etc/ssh
|
||||||
sudo dpkg-reconfigure openssh-server
|
sudo dpkg-reconfigure openssh-server
|
||||||
|
Reference in New Issue
Block a user