fixed ssh known hosts
This commit is contained in:
parent
38e3ce79f2
commit
852098465f
1 changed files with 3 additions and 4 deletions
|
@ -60,10 +60,9 @@ echo ""
|
||||||
|
|
||||||
read -p "Is this correct (y/n)? " v;if [ "$v" != "y" ];then "Exiting, restart to reenter info"; exit;fi
|
read -p "Is this correct (y/n)? " v;if [ "$v" != "y" ];then "Exiting, restart to reenter info"; exit;fi
|
||||||
|
|
||||||
dhcp_opts+=" -m $mac"
|
dhcp_opts=" -m $mac"
|
||||||
if [ -n $subnet ]; then dhcp_opts=" -s $subnet";fi
|
if [ -n $subnet ]; then dhcp_opts+=" -s $subnet";fi
|
||||||
if [ -n $ip ]; then dhcp_opts+=" -i $ip";fi
|
if [ -n $ip ]; then dhcp_opts+=" -i $ip";fi
|
||||||
dhcp_opts+=" -m $mac"
|
|
||||||
|
|
||||||
lname=`echo $name | tr '[:upper:]' '[:lower:]'`
|
lname=`echo $name | tr '[:upper:]' '[:lower:]'`
|
||||||
|
|
||||||
|
@ -155,7 +154,7 @@ echo "server up, waiting for ssh"
|
||||||
sleep 30
|
sleep 30
|
||||||
|
|
||||||
ssh-keygen -R ${lname}.actcur.com
|
ssh-keygen -R ${lname}.actcur.com
|
||||||
ssh-keyscan ${lname}.actcur.com | grep -v "#" | grep "ecdsa-sha2-nistp256" >> ~/.ssh/known_hosts
|
ssh-keyscan ${lname}.actcur.com | grep -v "#" | grep "ssh-ed25519 " >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
# install some dependencies
|
# install some dependencies
|
||||||
case "$variant" in
|
case "$variant" in
|
||||||
|
|
Loading…
Add table
Reference in a new issue