Skip to content

Commit 7ba917c

Browse files
Hyperkid123claude
andcommitted
fix(docker): add github.com to SSH host config
SSH config only had github.com-bot alias, so git@github.com URLs failed through the proxy. Bot wasted tokens rediscovering the alias each cycle. Now both github.com and github.com-bot resolve correctly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 28bd435 commit 7ba917c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ USER botuser
106106

107107
# SSH config — tunnel through Squid proxy for network isolation
108108
RUN mkdir -p /home/botuser/.ssh && chmod 700 /home/botuser/.ssh
109-
RUN echo -e "Host github.com-bot\n HostName github.com\n User git\n IdentityFile /home/botuser/.ssh/id_ed25519\n IdentitiesOnly yes\n StrictHostKeyChecking accept-new\n ProxyCommand socat - PROXY:proxy:%h:%p,proxyport=3128\n\nHost gitlab.cee.redhat.com\n IdentityFile /home/botuser/.ssh/id_ed25519\n StrictHostKeyChecking accept-new\n ProxyCommand socat - PROXY:proxy:%h:%p,proxyport=3128" \
109+
RUN echo -e "Host github.com github.com-bot\n HostName github.com\n User git\n IdentityFile /home/botuser/.ssh/id_ed25519\n IdentitiesOnly yes\n StrictHostKeyChecking accept-new\n ProxyCommand socat - PROXY:proxy:%h:%p,proxyport=3128\n\nHost gitlab.cee.redhat.com\n IdentityFile /home/botuser/.ssh/id_ed25519\n StrictHostKeyChecking accept-new\n ProxyCommand socat - PROXY:proxy:%h:%p,proxyport=3128" \
110110
> /home/botuser/.ssh/config && chmod 600 /home/botuser/.ssh/config
111111
ENV GIT_SSH_COMMAND="ssh -F /home/botuser/.ssh/config"
112112

0 commit comments

Comments
 (0)