Skip to content
Discussion options

You must be logged in to vote

@esthezia The next step is to stop trying to reach SSH over the app.github.dev URL. Those forwarded URLs only proxy HTTP. Raw SSH there will time out even if sshd is healthy. Keep sshd in your devcontainer and use the GitHub CLI tunnel for SSH and file copy. Your scp failure is because OpenSSH now defaults to SFTP and your container does not expose the SFTP subsystem. Add it and create the sshd runtime dir so privilege separation works.

# AlmaLinux 9 devcontainer with working sshd + SFTP for gh codespace cp
FROM almalinux:9

RUN dnf -y update && \
    dnf -y install openssh-server openssh-clients procps sudo && \
    dnf clean all

RUN useradd -m -s /bin/bash dev && \
    echo "dev ALL=(A…

Replies: 3 comments 2 replies

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Aqib121201

This comment was marked as off-topic.

@esthezia
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Codespaces Your development environment, in the cloud. Run VS Code and code on GitHub's cloud platform, Question Ask and answer questions about GitHub features and usage
2 participants