q
BOT_open_sesam/pipeline/head There was a failure building this commit
Details
BOT_open_sesam/pipeline/head There was a failure building this commit
Details
parent
55ebed483f
commit
193390ecb8
|
|
@ -1,14 +1,9 @@
|
||||||
# tunnel/entrypoint.sh
|
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Права на ключ
|
|
||||||
chmod 600 /root/.ssh/id_rsa
|
chmod 600 /root/.ssh/id_rsa
|
||||||
|
|
||||||
# Добавляем сервер в known_hosts
|
|
||||||
ssh-keyscan -p ${SSH_PORT:-22} ${SSH_HOST} >> /root/.ssh/known_hosts 2>/dev/null
|
ssh-keyscan -p ${SSH_PORT:-22} ${SSH_HOST} >> /root/.ssh/known_hosts 2>/dev/null
|
||||||
|
|
||||||
echo "Запуск AutoSSH туннеля → ${SSH_USER}@${SSH_HOST}:${SSH_PORT:-22}"
|
|
||||||
|
|
||||||
exec autossh \
|
exec autossh \
|
||||||
-M 0 \
|
-M 0 \
|
||||||
-N \
|
-N \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue