mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-07 06:56:56 +01:00
Cosmetic changes to the previous commit, bringing it closer to what I
already had in my tree but didn't want to commit.
This commit is contained in:
parent
8f8855cff0
commit
cec161f9e1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94465
@ -853,20 +853,20 @@ network_pass3() {
|
|||||||
[Yy][Ee][Ss])
|
[Yy][Ee][Ss])
|
||||||
if [ -x /usr/bin/ssh-keygen ]; then
|
if [ -x /usr/bin/ssh-keygen ]; then
|
||||||
if [ ! -f /etc/ssh/ssh_host_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_key ]; then
|
||||||
echo ' creating ssh protocol v1 RSA host key';
|
echo ' creating ssh1 RSA host key';
|
||||||
/usr/bin/ssh-keygen -t rsa1 -N "" \
|
/usr/bin/ssh-keygen -t rsa1 -N "" \
|
||||||
-f /etc/ssh/ssh_host_key
|
-f /etc/ssh/ssh_host_key
|
||||||
fi
|
fi
|
||||||
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
|
|
||||||
echo ' creating ssh protocol v2 DSA host key';
|
|
||||||
/usr/bin/ssh-keygen -t dsa -N "" \
|
|
||||||
-f /etc/ssh/ssh_host_dsa_key
|
|
||||||
fi
|
|
||||||
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
||||||
echo ' creating ssh protocol v2 RSA host key';
|
echo ' creating ssh2 RSA host key';
|
||||||
/usr/bin/ssh-keygen -t rsa -N "" \
|
/usr/bin/ssh-keygen -t rsa -N "" \
|
||||||
-f /etc/ssh/ssh_host_rsa_key
|
-f /etc/ssh/ssh_host_rsa_key
|
||||||
fi
|
fi
|
||||||
|
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
|
||||||
|
echo ' creating ssh2 DSA host key';
|
||||||
|
/usr/bin/ssh-keygen -t dsa -N "" \
|
||||||
|
-f /etc/ssh/ssh_host_dsa_key
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -853,20 +853,20 @@ network_pass3() {
|
|||||||
[Yy][Ee][Ss])
|
[Yy][Ee][Ss])
|
||||||
if [ -x /usr/bin/ssh-keygen ]; then
|
if [ -x /usr/bin/ssh-keygen ]; then
|
||||||
if [ ! -f /etc/ssh/ssh_host_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_key ]; then
|
||||||
echo ' creating ssh protocol v1 RSA host key';
|
echo ' creating ssh1 RSA host key';
|
||||||
/usr/bin/ssh-keygen -t rsa1 -N "" \
|
/usr/bin/ssh-keygen -t rsa1 -N "" \
|
||||||
-f /etc/ssh/ssh_host_key
|
-f /etc/ssh/ssh_host_key
|
||||||
fi
|
fi
|
||||||
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
|
|
||||||
echo ' creating ssh protocol v2 DSA host key';
|
|
||||||
/usr/bin/ssh-keygen -t dsa -N "" \
|
|
||||||
-f /etc/ssh/ssh_host_dsa_key
|
|
||||||
fi
|
|
||||||
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
||||||
echo ' creating ssh protocol v2 RSA host key';
|
echo ' creating ssh2 RSA host key';
|
||||||
/usr/bin/ssh-keygen -t rsa -N "" \
|
/usr/bin/ssh-keygen -t rsa -N "" \
|
||||||
-f /etc/ssh/ssh_host_rsa_key
|
-f /etc/ssh/ssh_host_rsa_key
|
||||||
fi
|
fi
|
||||||
|
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
|
||||||
|
echo ' creating ssh2 DSA host key';
|
||||||
|
/usr/bin/ssh-keygen -t dsa -N "" \
|
||||||
|
-f /etc/ssh/ssh_host_dsa_key
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -853,20 +853,20 @@ network_pass3() {
|
|||||||
[Yy][Ee][Ss])
|
[Yy][Ee][Ss])
|
||||||
if [ -x /usr/bin/ssh-keygen ]; then
|
if [ -x /usr/bin/ssh-keygen ]; then
|
||||||
if [ ! -f /etc/ssh/ssh_host_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_key ]; then
|
||||||
echo ' creating ssh protocol v1 RSA host key';
|
echo ' creating ssh1 RSA host key';
|
||||||
/usr/bin/ssh-keygen -t rsa1 -N "" \
|
/usr/bin/ssh-keygen -t rsa1 -N "" \
|
||||||
-f /etc/ssh/ssh_host_key
|
-f /etc/ssh/ssh_host_key
|
||||||
fi
|
fi
|
||||||
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
|
|
||||||
echo ' creating ssh protocol v2 DSA host key';
|
|
||||||
/usr/bin/ssh-keygen -t dsa -N "" \
|
|
||||||
-f /etc/ssh/ssh_host_dsa_key
|
|
||||||
fi
|
|
||||||
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
||||||
echo ' creating ssh protocol v2 RSA host key';
|
echo ' creating ssh2 RSA host key';
|
||||||
/usr/bin/ssh-keygen -t rsa -N "" \
|
/usr/bin/ssh-keygen -t rsa -N "" \
|
||||||
-f /etc/ssh/ssh_host_rsa_key
|
-f /etc/ssh/ssh_host_rsa_key
|
||||||
fi
|
fi
|
||||||
|
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
|
||||||
|
echo ' creating ssh2 DSA host key';
|
||||||
|
/usr/bin/ssh-keygen -t dsa -N "" \
|
||||||
|
-f /etc/ssh/ssh_host_dsa_key
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -853,20 +853,20 @@ network_pass3() {
|
|||||||
[Yy][Ee][Ss])
|
[Yy][Ee][Ss])
|
||||||
if [ -x /usr/bin/ssh-keygen ]; then
|
if [ -x /usr/bin/ssh-keygen ]; then
|
||||||
if [ ! -f /etc/ssh/ssh_host_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_key ]; then
|
||||||
echo ' creating ssh protocol v1 RSA host key';
|
echo ' creating ssh1 RSA host key';
|
||||||
/usr/bin/ssh-keygen -t rsa1 -N "" \
|
/usr/bin/ssh-keygen -t rsa1 -N "" \
|
||||||
-f /etc/ssh/ssh_host_key
|
-f /etc/ssh/ssh_host_key
|
||||||
fi
|
fi
|
||||||
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
|
|
||||||
echo ' creating ssh protocol v2 DSA host key';
|
|
||||||
/usr/bin/ssh-keygen -t dsa -N "" \
|
|
||||||
-f /etc/ssh/ssh_host_dsa_key
|
|
||||||
fi
|
|
||||||
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
||||||
echo ' creating ssh protocol v2 RSA host key';
|
echo ' creating ssh2 RSA host key';
|
||||||
/usr/bin/ssh-keygen -t rsa -N "" \
|
/usr/bin/ssh-keygen -t rsa -N "" \
|
||||||
-f /etc/ssh/ssh_host_rsa_key
|
-f /etc/ssh/ssh_host_rsa_key
|
||||||
fi
|
fi
|
||||||
|
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
|
||||||
|
echo ' creating ssh2 DSA host key';
|
||||||
|
/usr/bin/ssh-keygen -t dsa -N "" \
|
||||||
|
-f /etc/ssh/ssh_host_dsa_key
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -853,20 +853,20 @@ network_pass3() {
|
|||||||
[Yy][Ee][Ss])
|
[Yy][Ee][Ss])
|
||||||
if [ -x /usr/bin/ssh-keygen ]; then
|
if [ -x /usr/bin/ssh-keygen ]; then
|
||||||
if [ ! -f /etc/ssh/ssh_host_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_key ]; then
|
||||||
echo ' creating ssh protocol v1 RSA host key';
|
echo ' creating ssh1 RSA host key';
|
||||||
/usr/bin/ssh-keygen -t rsa1 -N "" \
|
/usr/bin/ssh-keygen -t rsa1 -N "" \
|
||||||
-f /etc/ssh/ssh_host_key
|
-f /etc/ssh/ssh_host_key
|
||||||
fi
|
fi
|
||||||
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
|
|
||||||
echo ' creating ssh protocol v2 DSA host key';
|
|
||||||
/usr/bin/ssh-keygen -t dsa -N "" \
|
|
||||||
-f /etc/ssh/ssh_host_dsa_key
|
|
||||||
fi
|
|
||||||
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
||||||
echo ' creating ssh protocol v2 RSA host key';
|
echo ' creating ssh2 RSA host key';
|
||||||
/usr/bin/ssh-keygen -t rsa -N "" \
|
/usr/bin/ssh-keygen -t rsa -N "" \
|
||||||
-f /etc/ssh/ssh_host_rsa_key
|
-f /etc/ssh/ssh_host_rsa_key
|
||||||
fi
|
fi
|
||||||
|
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
|
||||||
|
echo ' creating ssh2 DSA host key';
|
||||||
|
/usr/bin/ssh-keygen -t dsa -N "" \
|
||||||
|
-f /etc/ssh/ssh_host_dsa_key
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -853,20 +853,20 @@ network_pass3() {
|
|||||||
[Yy][Ee][Ss])
|
[Yy][Ee][Ss])
|
||||||
if [ -x /usr/bin/ssh-keygen ]; then
|
if [ -x /usr/bin/ssh-keygen ]; then
|
||||||
if [ ! -f /etc/ssh/ssh_host_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_key ]; then
|
||||||
echo ' creating ssh protocol v1 RSA host key';
|
echo ' creating ssh1 RSA host key';
|
||||||
/usr/bin/ssh-keygen -t rsa1 -N "" \
|
/usr/bin/ssh-keygen -t rsa1 -N "" \
|
||||||
-f /etc/ssh/ssh_host_key
|
-f /etc/ssh/ssh_host_key
|
||||||
fi
|
fi
|
||||||
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
|
|
||||||
echo ' creating ssh protocol v2 DSA host key';
|
|
||||||
/usr/bin/ssh-keygen -t dsa -N "" \
|
|
||||||
-f /etc/ssh/ssh_host_dsa_key
|
|
||||||
fi
|
|
||||||
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
||||||
echo ' creating ssh protocol v2 RSA host key';
|
echo ' creating ssh2 RSA host key';
|
||||||
/usr/bin/ssh-keygen -t rsa -N "" \
|
/usr/bin/ssh-keygen -t rsa -N "" \
|
||||||
-f /etc/ssh/ssh_host_rsa_key
|
-f /etc/ssh/ssh_host_rsa_key
|
||||||
fi
|
fi
|
||||||
|
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
|
||||||
|
echo ' creating ssh2 DSA host key';
|
||||||
|
/usr/bin/ssh-keygen -t dsa -N "" \
|
||||||
|
-f /etc/ssh/ssh_host_dsa_key
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -853,20 +853,20 @@ network_pass3() {
|
|||||||
[Yy][Ee][Ss])
|
[Yy][Ee][Ss])
|
||||||
if [ -x /usr/bin/ssh-keygen ]; then
|
if [ -x /usr/bin/ssh-keygen ]; then
|
||||||
if [ ! -f /etc/ssh/ssh_host_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_key ]; then
|
||||||
echo ' creating ssh protocol v1 RSA host key';
|
echo ' creating ssh1 RSA host key';
|
||||||
/usr/bin/ssh-keygen -t rsa1 -N "" \
|
/usr/bin/ssh-keygen -t rsa1 -N "" \
|
||||||
-f /etc/ssh/ssh_host_key
|
-f /etc/ssh/ssh_host_key
|
||||||
fi
|
fi
|
||||||
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
|
|
||||||
echo ' creating ssh protocol v2 DSA host key';
|
|
||||||
/usr/bin/ssh-keygen -t dsa -N "" \
|
|
||||||
-f /etc/ssh/ssh_host_dsa_key
|
|
||||||
fi
|
|
||||||
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
|
||||||
echo ' creating ssh protocol v2 RSA host key';
|
echo ' creating ssh2 RSA host key';
|
||||||
/usr/bin/ssh-keygen -t rsa -N "" \
|
/usr/bin/ssh-keygen -t rsa -N "" \
|
||||||
-f /etc/ssh/ssh_host_rsa_key
|
-f /etc/ssh/ssh_host_rsa_key
|
||||||
fi
|
fi
|
||||||
|
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
|
||||||
|
echo ' creating ssh2 DSA host key';
|
||||||
|
/usr/bin/ssh-keygen -t dsa -N "" \
|
||||||
|
-f /etc/ssh/ssh_host_dsa_key
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user