INFO[0029] Running: [/bin/sh -c ssh -o StrictHostKeyChecking=no -T git@github.com]
Load key "/root/.ssh/id_rsa": error in libcrypto
git@github.com: Permission denied (publickey).
RUN mkdir -p /root/.ssh
RUN echo "$ID_RSA" > /root/.ssh/id_rsa && rev /root/.ssh/id_rsa
-----YEK ETAVIRP HSSNEPO NIGEB-----
и по размеру смотрела, совпадает с реальным ключом ARG ID_RSA
RUN mkdir -p /root/.ssh && chmod 700 /root/.ssh
RUN echo "$ID_RSA" | tr -d '\r' | ssh-add -
RUN eval $(ssh-agent -s)
INFO[0026] Running: [/bin/sh -c echo "$ID_RSA" | tr -d '\r' | ssh-add -]
Could not open a connection to your authentication agent.
ARG ID_RSA
RUN mkdir -p /root/.ssh
RUN printf "%s" "$ID_RSA" > /root/.ssh/id_rsa
RUN chmod 600 /root/.ssh/id_rsa
RUN ssh-keyscan github.com >> /root/.ssh/known_hosts
RUN ssh -o StrictHostKeyChecking=no -T git@github.com
INFO[0029] Running: [/bin/sh -c ssh -o StrictHostKeyChecking=no -T git@github.com]
Load key "/root/.ssh/id_rsa": error in libcrypto
git@github.com: Permission denied (publickey).
INFO[0027] Running: [/bin/sh -c ssh -T git@github.com]
Load key "/root/.ssh/id_rsa": error in libcrypto
git@github.com: Permission denied (publickey).
Hi Elena0394! You've successfully authenticated, but GitHub does not provide shell access.
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/test/stage.git
npm ERR! Load key "/root/.ssh/id_rsa": error in libcrypto
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
Я могу указать локацию соседнего дома, например. Потому что мне так хочется или потому что удобнее туда дойти.
function AuthTg() {
const paramsTg = {
bot_id: 'номер бота',
origin: 'домен',
embed: 1,
request_access: 'write',
return_to: 'куда перенаправить после авторизации, должен совпадать с доменом'
};
const urlTg = 'https://oauth.telegram.org/auth?' +
Object.entries(paramsTg)
.map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`)
.join('&');
return (
<div>
<a href={urlTg}>Авторизоваться в Telegram</a>
</div>
);
}