Skip to content

SSH not accessible / configuration issue? #377

Closed
@redradrat

Description

@redradrat
  • Gitea version (or commit ref): master
  • Git version: 2.8.3
  • Operating system: gitea/gitea Docker Image | Alpine 3.4
  • Database (use [x]):
    • PostgreSQL
      MySQL
      SQLite

Description

There might be something wrong with the sshd config on the gitea docker image. Spinning up a fresh container and adding my ssh key, logging in with

ssh -l git INSTANCEADDRESS -p PORT

is not possible.

Output sshd.log

rexec line 21: Unsupported option PrintLastLog
User git not allowed because account is locked
input_userauth_request: invalid user git
Failed none for invalid user git from XXX.XXX.XXX.XXX port XXXXX ssh2
Failed publickey for invalid user git from XXX.XXX.XXX.XXX port XXXXX ssh2
Connection closed by XXX.XXX.XXX.XXX port XXXXX

With the latest gogs image that is not the case.

Activity

redradrat

redradrat commented on Dec 12, 2016

@redradrat
Author

To clarify:

gogs responds to the ssh login with

PTY allocation request failed on channel 0
Hi there, You've successfully authenticated, but Gogs does not provide shell access.
If this is unexpected, please log in with password and setup Gogs under another user.
Connection to XXX.XXX.XXX.XXX closed.

Which is the expected response, and confirms the sshd config.

bkcsoft

bkcsoft commented on Dec 12, 2016

@bkcsoft
Member

@tboerger @xinity IIRC you guys knows the docker-image best

added this to the 1.0.0 milestone on Dec 13, 2016
tboerger

tboerger commented on Dec 13, 2016

@tboerger
Member

Will get into that directly when I'm launching try.gitea.io

tboerger

tboerger commented on Dec 14, 2016

@tboerger
Member

So #386 will solve this issue. But be warned that we would like to restructure some of the volume directories because it got currently a pretty weird too deep nested structure.

locked and limited conversation to collaborators on Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @lunny@tboerger@bkcsoft@redradrat

      Issue actions

        SSH not accessible / configuration issue? · Issue #377 · go-gitea/gitea