Details

    • Sub-task
    • Resolution: Fixed
    • Major
    • 0.8.0
    • None
    • None
    • None

    Description

      Unable to ssh to the couchbase-server docker image created using the Dockerfile:

      FROM couchbase/server:enterprise-5.0.1
      MAINTAINER Couchbase Docker Team <docker@couchbase.com>
      RUN apt update
      RUN apt install openssh-client openssh-server -y
      RUN mkdir /var/run/sshd
      RUN echo 'root:couchbase' | chpasswd
      RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
      # SSH login fix. Otherwise user is kicked off after login
      RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
      RUN echo 'export VISIBLE=now' >> /etc/profile
      RUN /usr/sbin/sshd -D &
      EXPOSE 8091 8092 8093 8094 9100 9101 9102 9103 9104 9105 9998 9999 11207 11210 11211 18091 18092 22

      Observation:

      1. After container creation, after using docker exec "service ssh start" only allows ssh login procedure.
      2. Even then username, password <root/couchbase> values are not working.
      3. Unable to login even if the ssh service starts in the container

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ashwin.govindarajulu Ashwin Govindarajulu
              ashwin.govindarajulu Ashwin Govindarajulu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty