File tree Expand file tree Collapse file tree 2 files changed +5
-107
lines changed Expand file tree Collapse file tree 2 files changed +5
-107
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -36,7 +36,11 @@ if [ -d ${jailsysdir}/${jname}/cloud-init ]; then
36
36
login_cmd="${SSH_CMD} -oStrictHostKeyChecking=no -oConnectTimeout=15 -oServerAliveInterval=10 root@${first_ip4_addr}"
37
37
else
38
38
eval _pubkey="\$ci_user_pubkey_${ci_user_add}"
39
- if [ "${_pubkey}" = ".ssh/authorized_keys" ]; then
39
+ if [ "${_pubkey}" = ".ssh/id_rsa.pub" ]; then
40
+ echo "xlogin.conf: ${SSH_CMD} -oStrictHostKeyChecking=no -oConnectTimeout=15 -oServerAliveInterval=10 -i ${workdir}/.ssh/id_rsa ${ci_user_add}@${first_ip4_addr}" 1>&2
41
+ login_cmd="${SSH_CMD} -oStrictHostKeyChecking=no -oConnectTimeout=15 -oServerAliveInterval=10 -i ${workdir}/.ssh/id_rsa ${ci_user_add}@${first_ip4_addr}"
42
+ elif [ "${_pubkey}" = ".ssh/authorized_keys" ]; then
43
+ # back compat for CBSD < 14.1.3
40
44
echo "xlogin.conf: ${SSH_CMD} -oStrictHostKeyChecking=no -oConnectTimeout=15 -oServerAliveInterval=10 -i ${workdir}/.ssh/id_rsa ${ci_user_add}@${first_ip4_addr}" 1>&2
41
45
login_cmd="${SSH_CMD} -oStrictHostKeyChecking=no -oConnectTimeout=15 -oServerAliveInterval=10 -i ${workdir}/.ssh/id_rsa ${ci_user_add}@${first_ip4_addr}"
42
46
else
You can’t perform that action at this time.
0 commit comments