Skip to content

Commit c948be1

Browse files
committed
Disable the forced enable Password Auth
Since Pre "split" of Vesta this was the default action when installing Since 1.2.0 Hestia has support for addig / mananging of "RSA/SSH keys" via Web UI and Hestia has no issue with running like this. As we don't change the default behaviour of the install there is no change of locking your self out.
1 parent b27cc66 commit c948be1

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

install/hst-install-debian.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,8 +918,6 @@ rm -f /usr/sbin/policy-rc.d
918918

919919

920920
echo "[ * ] Configuring system settings..."
921-
# Enable SSH password authentication
922-
sed -i "s/rdAuthentication no/rdAuthentication yes/g" /etc/ssh/sshd_config
923921

924922
# Enable SFTP subsystem for SSH
925923
sftp_subsys_enabled=$(grep -iE "^#?.*subsystem.+(sftp )?sftp-server" /etc/ssh/sshd_config)

install/hst-install-ubuntu.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,8 +916,6 @@ rm -f /usr/sbin/policy-rc.d
916916
#----------------------------------------------------------#
917917

918918
echo "[ * ] Configuring system settings..."
919-
# Enable SSH password authentication
920-
sed -i "s/rdAuthentication no/rdAuthentication yes/g" /etc/ssh/sshd_config
921919

922920
# Enable SFTP subsystem for SSH
923921
sftp_subsys_enabled=$(grep -iE "^#?.*subsystem.+(sftp )?sftp-server" /etc/ssh/sshd_config)

0 commit comments

Comments
 (0)