mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-28 07:32:24 +00:00
output redirection fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user