New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How troubleshoot SSHd on Docker ? #1893
Comments
Get into Docker and check SSH auth.log. |
cc @0rax |
Did not find "auth.log" file in my container. Am i missing something ? |
Check if |
Can you try to connect to your serveur via ssh ?
It should output
|
permission is Cannot connect to ssh (Permission denied) |
Bun cannot find auth.log or any log from openssh. |
To get access to sshd log, you will need to activate syslogd (not launched by default). Just do a Currently working on a way to print sshd logs inside |
|
Actually with logging enabled it's better
|
Quick fix would be How did you launched the container itself, the command itself so I can try to reproduce this. Will definitly add syslogd as a service for this purpose... While I try to find a way to output sshd logs to stdout ! |
Ok, so i change permissions for /data/git and it works. Not sure what caused the permissions errors. |
I can reproduce the error, here what i do
|
That's weird, I cant reproduce on my own using a brand new instance of |
Wait ! I may be skipped a step ! (i change my /.ssh/config for testing purpose ...) I recreate an instance and try to get the same error again. |
Hmmm, get the same error again. Here what i do.
I will try with boot2docker and on another server. |
By the way, i correct the permission problem with |
Can you do a So I can see how it differs and unsure the correct rights to the folder during |
Hmmm. I try on another server and get different result :/ (permissions are ok). Need more time to investigate the differences. |
Can you post the docker version of the servers you are testing this on with
the output of `ls -lah /data` and tell me which one is triggering the
error.
Thanks a lot.
|
Server 1 (not working as expected)Docker Client:
Docker Server:
output of ls -lah /data
Server 2 (working as expected)Docker Client:
Docker Server:
output of ls -lah /data
|
I upgrade Server 2 to docker 1.9.0 and it's working as expected. |
Ok, so that's a weird behaviour, currently writing a fix to ensurce proper rights on this directory. |
I cannot update Server 1 before 2 weeks because it's running critical apps. |
In the same time, I will try to upgrade one of mine to 1.8.3 and publish a fix for it ! Thanks for your information. Will keep you informed when the fix is ready. |
Thanks for your help. |
By merging #1898 to |
I tested the |
Thanks your confirmation! |
Hi,
I use GOGS as Docker appliance.
I just update to the last version.
I added my public key to my account.
Try to connect with
ssh -vT git myhostname
and getPermission denied (publickey,keyboard-interactive).
I check
/home/git/.ssh/.authorized_keys
and seems OK.Is there a way to troubleshoot OpenSSH in GOGS running in Docker (where are the logs ?) ?
The text was updated successfully, but these errors were encountered: