diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2011-05-04 07:34:44 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2011-05-04 07:34:44 +0000 |
commit | 4a421b6336e5e0c2ff27024c30fe32c6f71dcf3d (patch) | |
tree | a745d3c673d44775cc175961e80d2246eb00e0df /etc/rc.d/sshd | |
parent | d40df3b2f289d4721ddd22fd1353a73a719aec6c (diff) | |
parent | b615e9314d359103d64cb04f5a498d891ed78473 (diff) | |
download | src-4a421b6336e5e0c2ff27024c30fe32c6f71dcf3d.tar.gz src-4a421b6336e5e0c2ff27024c30fe32c6f71dcf3d.zip |
Upgrade to OpenSSH 5.8p2.
Notes
Notes:
svn path=/head/; revision=221420
Diffstat (limited to 'etc/rc.d/sshd')
-rwxr-xr-x | etc/rc.d/sshd | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/etc/rc.d/sshd b/etc/rc.d/sshd index fd95d5ad0a49..9f001997edfd 100755 --- a/etc/rc.d/sshd +++ b/etc/rc.d/sshd @@ -70,12 +70,20 @@ sshd_keygen() fi if [ -f /etc/ssh/ssh_host_rsa_key ]; then - echo "You already have a RSA host key" \ + echo "You already have an RSA host key" \ "in /etc/ssh/ssh_host_rsa_key" echo "Skipping protocol version 2 RSA Key Generation" else /usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' fi + + if [ -f /etc/ssh/ssh_host_ecdsa_key ]; then + echo "You already have an ECDSA host key" \ + "in /etc/ssh/ssh_host_ecdsa_key" + echo "Skipping protocol version 2 ECDSA Key Generation" + else + /usr/bin/ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N '' + fi ) } @@ -83,6 +91,7 @@ sshd_precmd() { if [ ! -f /etc/ssh/ssh_host_key -o \ ! -f /etc/ssh/ssh_host_dsa_key -o \ + ! -f /etc/ssh/ssh_host_ecdsa_key -o \ ! -f /etc/ssh/ssh_host_rsa_key ]; then user_reseed run_rc_command keygen |