Skip to content

[Bug]: SSH connection fails after system package update: 'Permission denied (publickey,password)' #7980

Description

@Yurgeman

Error Message and Logs

After a routine system package update (including openssh-server), the localhost server in Coolify became unreachable with the following error:

Server is not reachable.
Error: root@host.docker.internal: Permission denied (publickey,password).

Manual SSH connection using the generated key also initially failed due to misconfiguration, but after fixing /etc/ssh/sshd_config and ensuring the public key is in ~/.ssh/authorized_keys, manual login works:

ssh -i /data/coolify/ssh/keys/id.root@host.docker.internal root@localhost

However, when trying to assign the same private key to the localhost server in Coolify UI, it shows:

This key is not valid for this server.

Both automatic and manual setup steps from https://coolify.io/docs/knowledge-base/server/openssh were followed precisely.

Steps to Reproduce

Example Repository URL

No response

Coolify Version

v4.0.0-beta.460

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 22

Additional Information

No response

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 Possible BugReported issues that need to be reproduced by the team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions