diff options
author | Achim Gottinger <achim@gentoo.org> | 2001-05-10 07:43:27 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2001-05-10 07:43:27 +0000 |
commit | 3f159057c410ef67c1ccf2aa27324489873d481e (patch) | |
tree | 195241d72172ad81c0d2fab1937ea3e3e98fc6a8 /net-misc | |
parent | Fixed init.d/xdm installation (diff) | |
download | gentoo-2-3f159057c410ef67c1ccf2aa27324489873d481e.tar.gz gentoo-2-3f159057c410ef67c1ccf2aa27324489873d481e.tar.bz2 gentoo-2-3f159057c410ef67c1ccf2aa27324489873d481e.zip |
*** empty log message ***
Diffstat (limited to 'net-misc')
-rwxr-xr-x | net-misc/openssh/files/openssh | 5 | ||||
-rwxr-xr-x | net-misc/openssh/files/svc-sshd | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/net-misc/openssh/files/openssh b/net-misc/openssh/files/openssh index cae83ea2f2a2..9c01fcf05fd3 100755 --- a/net-misc/openssh/files/openssh +++ b/net-misc/openssh/files/openssh @@ -20,6 +20,11 @@ gen_keys() { einfo "Generating DSA-Hostkey..." /usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' fi + if [ ! -e /etc/ssh/ssh_host_rsa_key ] + then + einfo "Generating RSA-Hostkey..." + /usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' + fi } start() { diff --git a/net-misc/openssh/files/svc-sshd b/net-misc/openssh/files/svc-sshd index dba8da5ff099..daa0324a67d3 100755 --- a/net-misc/openssh/files/svc-sshd +++ b/net-misc/openssh/files/svc-sshd @@ -15,6 +15,11 @@ gen_keys() { einfo "Generating DSA-Hostkey..." /usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' fi + if [ ! -e /etc/ssh/ssh_host_rsa_key ] + then + einfo "Generating RSA-Hostkey..." + /usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' + fi } start() { |