equal
deleted
inserted
replaced
134 |
134 |
135 case $1 in |
135 case $1 in |
136 # sysidconfig/sys-unconfig arguments (-c and -u) |
136 # sysidconfig/sys-unconfig arguments (-c and -u) |
137 '-c') |
137 '-c') |
138 create_key $SSHDIR/ssh_host_rsa_key rsa |
138 create_key $SSHDIR/ssh_host_rsa_key rsa |
139 create_key $SSHDIR/ssh_host_dsa_key dsa |
139 create_key $SSHDIR/ssh_host_ed25519_key ed25519 |
140 ;; |
140 ;; |
141 |
141 |
142 '-u') |
142 '-u') |
143 # sysconfig unconfigure to remove the sshd host keys |
143 # sysconfig unconfigure to remove the sshd host keys |
144 remove_key $SSHDIR/ssh_host_rsa_key |
144 remove_key $SSHDIR/ssh_host_rsa_key |
145 remove_key $SSHDIR/ssh_host_dsa_key |
145 remove_key $SSHDIR/ssh_host_ed25519_key |
146 ;; |
146 ;; |
147 |
147 |
148 # SMF arguments (start and restart [really "refresh"]) |
148 # SMF arguments (start and restart [really "refresh"]) |
149 |
149 |
150 'start') |
150 'start') |
152 # If host keys don't exist when the service is started, create |
152 # If host keys don't exist when the service is started, create |
153 # them; sysidconfig is not run in every situation (such as on |
153 # them; sysidconfig is not run in every situation (such as on |
154 # the install media). |
154 # the install media). |
155 # |
155 # |
156 create_key $SSHDIR/ssh_host_rsa_key rsa |
156 create_key $SSHDIR/ssh_host_rsa_key rsa |
157 create_key $SSHDIR/ssh_host_dsa_key dsa |
157 create_key $SSHDIR/ssh_host_ed25519_key ed25519 |
158 |
158 |
159 # |
159 # |
160 # Make sure, that /etc/ssh/sshd_config does not contain single line |
160 # Make sure, that /etc/ssh/sshd_config does not contain single line |
161 # 'ListenAddress ::'. |
161 # 'ListenAddress ::'. |
162 # |
162 # |