Skip to content

SSH connection not possible after initial launch #6

Description

@pmaas

When I'm launching the docker container for the first time, I'm not able to connect via SSH:

# ssh www-data@localhost -i ~/.ssh/my_private_key
Permission denied (publickey).

After a restart of the container the same command works very well.

Maybe we have to restart the sshd service after modifing the /etc/ssh/sshd_config file. But I don't know how to do it. From # /etc/init.d/sshd restart I'm getting sh: /etc/init.d/sshd: not found although the file is there.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions