mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
SSH keys are generated with SHA256 signature, no more MD5
This commit is contained in:
parent
600835f606
commit
d021127262
@ -4,11 +4,7 @@ gen_key() {
|
||||
ks="${keytype}_"
|
||||
key="keys/ssh_host_${ks}key"
|
||||
if [ ! -e "${key}" ] ; then
|
||||
if ssh-keygen --help 2>&1 | grep -e '-E ' > /dev/null; then
|
||||
ssh-keygen -t ${keytype} -f "${key}" -N '' -E md5
|
||||
else
|
||||
ssh-keygen -t ${keytype} -f "${key}" -N ''
|
||||
fi
|
||||
return $?
|
||||
fi
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user