HPE Ezmeral Software platform
1761193 Members
3827 Online
108901 Solutions
New Discussion

ssh into deployed cent container failed.

 
shyang72
Occasional Contributor

ssh into deployed cent container failed.


Hello all

I deployed CentOS(HPE provided default template image installed on Ezmeral MLOPS tenant),
and tried to ssh into CentOS application using dev1 user , but failed.

k8suser@kdss-ncf9z-0:~$ ssh dev1@jsgateway.mapr.local -p 10021
The authenticity of host '[jsgateway.mapr.local]:10021 ([192.168.100.152]:10021)' can't be established.
ECDSA key fingerprint is SHA256:7GrrtSHpB9rBxzr4seKKZPXH94X462l26+ZtkgaPrcQ.
ECDSA key fingerprint is MD5:63:6f:36:99:dd:d1:2e:b5:79:cb:c1:de:37:fc:01:59.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[jsgateway.mapr.local]:10021,[192.168.100.152]:10021' (ECDSA) to the list of known hosts.
dev1@jsgateway.mapr.local's password:
Authentication failed.
k8suser@kdss-ncf9z-0:~$

I know logging into ssh container via kubectl exec,
but it's better make it for normal user to be able to login into ssh container.

Would anybody help what can I do check further ?


just f.y.i.,
When Tenant admin created jupyter notebook, and assigned dev1 as same Tenant member,
then dev1 user could login into jupyter notebook using LDAP password without any problem.

1 REPLY 1
Jags_21
HPE Pro

Re: ssh into deployed cent container failed.

Hi Shyang,

If the Kubernetes container is running the SSHD service, then you may use an SSH client to log in normally. The following considerations apply to this method:

  • Automatic LDAP/AD integration is not provided for Kubernetes containers. To SSH into a container, you must therefore know of a valid user account within that container and know the login password for that account.
  • The port for the SSHD service must be exposed through a Kubernetes service. For access from outside the Kubernetes cluster, this should be a NodePort service that is mapped to a port on a Gateway host. You can then use an external SSH client to connect to that port on the Gateway host.

Refer the link for additional information and details on the port requirements: https://docs.containerplatform.hpe.com/55/reference/accessing-the-applications/Accessing_Kubernetes_Containers.html?hl=sshd

On SSHD serivce check this link https://docs.containerplatform.hpe.com/55/reference/system-requirements/general/Configuration_Requirements.html#v52_configuration-requirements__sshd (please check note as well in this section)

For Non-Kubernetes Container Access (LDAP/AD) refer link: https://support.hpe.com/hpesc/public/docDisplay?docId=a00ecp54hen_us&page=reference/accessing-the-applications/NonKubernetes_Container_Access_LDAPAD.html

Hope this would help you to get ssh access.

Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise.
I work for HPE

Accept or Kudo