output redirection fix

This commit is contained in:
Bob Gendler
2023-05-26 12:20:18 -04:00
parent 5e1485e109
commit fdcc5b5bb9

View File

@@ -603,7 +603,7 @@ if [[ $EUID -ne 0 ]]; then
fi
ssh_key_check=0
if /usr/sbin/sshd -T 2&> /dev/null; then
if /usr/sbin/sshd -T &> /dev/null; then
ssh_key_check=0
else
/usr/bin/ssh-keygen -q -N "" -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key