Skip to content

Proxy Jumps now disabled #43

Description

@johannes-bauer

It used to be possible to use an SSH server running in a container from this image as a proxy jump server as in ssh -J <jump-host> target-host or using a ProxyJump directive in an ./ssh/config.

That seems to be disabled now (getting 'channel 0: open failed: administratively prohibited'). Apparently, the default value for the PermitTunnel directive in /etc/ssh/sshd_config has changed from yes to no.

Expected Behavior

Starting a container using this image, I can run ssh -J <container host> <target host reachable from container> and ssh into the target host through the container.

(alternative to configure ProxyJump in ~/.ssh/config)

Current Behavior

When connecting as above, I get 'channel 0: open failed: administratively prohibited'

Steps to Reproduce

Start server:

[me@my-desk]$ docker run \
  --rm \
  -e USER_PASSWORD=a \
  -e PASSWORD_ACCESS=true \
  -p 2222:2222 \
  ghcr.io/linuxserver/openssh-server
[me@my-desk]$ ssh -J linuxserver.io@localhost:2222 git@github.com 
linuxserver.io@localhost's password: 
channel 0: open failed: administratively prohibited: open failed
stdio forwarding failed
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535

Discussion:

I'm not sure: should this be enabled by default? Should this be another configuration option of this image? Or should users just modify their images or mount custom configs if they need this?

Personally, I do need this functionality.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions