1 |
jpp |
1.1 |
diff -Nur e-smith-openssh-2.6.0.old/root/sbin/e-smith/systemd/sshd-prepare e-smith-openssh-2.6.0/root/sbin/e-smith/systemd/sshd-prepare |
2 |
|
|
--- e-smith-openssh-2.6.0.old/root/sbin/e-smith/systemd/sshd-prepare 2021-02-18 17:39:18.638000000 -0500 |
3 |
|
|
+++ e-smith-openssh-2.6.0/root/sbin/e-smith/systemd/sshd-prepare 2021-02-18 17:39:49.296000000 -0500 |
4 |
|
|
@@ -29,7 +29,7 @@ |
5 |
|
|
do_rsa_keygen() { |
6 |
|
|
if [ ! -s $RSA_KEY ]; then |
7 |
|
|
echo -n $"Generating SSH2 RSA host key: " |
8 |
|
|
- if $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then |
9 |
|
|
+ if $KEYGEN -q -t rsa -b 4096 -f $RSA_KEY -C '' -N '' >&/dev/null; then |
10 |
|
|
chmod 600 $RSA_KEY |
11 |
|
|
chmod 644 $RSA_KEY.pub |
12 |
|
|
echo "Success: RSA key generation" |
13 |
|
|
@@ -60,7 +60,7 @@ |
14 |
|
|
do_ecdsa_keygen() { |
15 |
|
|
if [ ! -s $ECDSA_KEY ]; then |
16 |
|
|
echo -n $"Generating SSH2 ECDSA host key: " |
17 |
|
|
- if $KEYGEN -q -t ecdsa -f $ECDSA_KEY -C '' -N '' >&/dev/null; then |
18 |
|
|
+ if $KEYGEN -q -t ecdsa -b 521 -f $ECDSA_KEY -C '' -N '' >&/dev/null; then |
19 |
|
|
chmod 600 $ECDSA_KEY |
20 |
|
|
chmod 644 $ECDSA_KEY.pub |
21 |
|
|
echo "Success: ECDSA key generation" |