This guide explains how to set up a Podman container with SSH to test the Prompt Registry extension in VS Code remote SSH scenarios.
- Podman installed
- VS Code with Remote-SSH extension installed
- SSH client on host machine
Create a Dockerfile for the SSH-enabled container:
cat > Dockerfile.ssh-test << 'EOF'
FROM ubuntu:22.04
# Install SSH server and dependencies
RUN apt-get update && \
apt-get install -y openssh-server sudo curl git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Create SSH directory
RUN mkdir /var/run/sshd
# Create test user
RUN useradd -rm -d /home/testuser -s /bin/bash -g users -G sudo -u 1001 testuser && \
echo 'testuser:testpass' | chpasswd
# Allow password authentication
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config && \
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config
# Allow root login (optional, for debugging)
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
# Expose SSH port
EXPOSE 22
# Start SSH service
CMD ["/usr/sbin/sshd", "-D"]
EOFpodman build -f Dockerfile.ssh-test -t vscode-ssh-test .podman run -d \
--name vscode-ssh-test \
-p 2222:22 \
vscode-ssh-testssh -p 2222 testuser@localhost
# Password: testpassEdit ~/.ssh/config:
cat >> ~/.ssh/config << 'EOF'
Host vscode-ssh-test
HostName localhost
Port 2222
User testuser
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
EOF- Install "Remote - SSH" extension in VS Code
- Press
F1and select "Remote-SSH: Connect to Host..." - Select "vscode-ssh-test"
- Enter password:
testpass
Once connected:
# Build VSIX first (on host)
npm run package:vsix
# Copy to container
podman cp prompt-registry-0.0.2.vsix vscode-ssh-test:/home/testuser/
# In VS Code remote terminal
code --install-extension ~/prompt-registry-0.0.2.vsix- Check
vscode.env.remoteName- should be'ssh-remote' - Install a prompt collection
- Check Output → "Prompt Registry" for logs
- Verify prompts sync to remote filesystem
podman stop vscode-ssh-test
podman rm vscode-ssh-test
podman rmi vscode-ssh-test- Container starts and SSH is accessible
- VS Code connects to SSH remote
- Extension installs in remote
- Extension activates without errors
- Can install prompt collections
- Prompts sync to remote filesystem
- No errors in Output panel