{"slug": "fixing-ghcr-unauthorized-docker-cannot-perform-interactive-login-from-non-tty-in", "title": "Fixing GHCR “Unauthorized” + Docker “Cannot perform interactive login from non-TTY” in GitHub Actions + SSH Deployments", "summary": "A developer resolved two common deployment errors—GHCR “Unauthorized” and Docker “Cannot perform interactive login from non-TTY”—by configuring GitHub Actions to use a personal access token (PAT) with the `write:packages` scope and passing credentials via environment variables rather than interactive prompts. The fix enables automated SSH deployments to pull private container images from GitHub Container Registry without manual login.", "body_md": "Fixing GHCR “Unauthorized” + Docker “Cannot perform interactive login from non-TTY” in GitHub Actions + SSH Deployments\nFOLASAYO SAMUEL OLAYEMI\nFOLASAYO SAMUEL OLAYEMI\nFOLASAYO SAMUEL OLAYEMI\nFollow\nJun 11\nFixing GHCR “Unauthorized” + Docker “Cannot perform interactive login from non-TTY” in GitHub Actions + SSH Deployments\n#\ndevops\n#\ninfrastructure\n#\nai\n#\ntutorial\n5\nreactions\nAdd Comment\n3 min read", "url": "https://wpnews.pro/news/fixing-ghcr-unauthorized-docker-cannot-perform-interactive-login-from-non-tty-in", "canonical_source": "https://dev.to/saint_vandora/fixing-ghcr-unauthorized-docker-cannot-perform-interactive-login-from-non-tty-in-github-eig", "published_at": "2026-06-11 22:48:42+00:00", "updated_at": "2026-06-11 23:43:11.575197+00:00", "lang": "en", "topics": ["ai-infrastructure", "mlops"], "entities": ["GitHub Actions", "Docker", "GHCR", "SSH"], "alternates": {"html": "https://wpnews.pro/news/fixing-ghcr-unauthorized-docker-cannot-perform-interactive-login-from-non-tty-in", "markdown": "https://wpnews.pro/news/fixing-ghcr-unauthorized-docker-cannot-perform-interactive-login-from-non-tty-in.md", "text": "https://wpnews.pro/news/fixing-ghcr-unauthorized-docker-cannot-perform-interactive-login-from-non-tty-in.txt", "jsonld": "https://wpnews.pro/news/fixing-ghcr-unauthorized-docker-cannot-perform-interactive-login-from-non-tty-in.jsonld"}}