[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Running sshd in a Docker Container on Openshift



oc rsync is not always appropriate, since the communication has to go through the master.  If you're doing 40gb db backups via rsync you'd want to choose a different mechanism, at least until we add direct exec session support in the future

On Jul 9, 2017, at 2:13 PM, Ben Parees <bparees redhat com> wrote:

if nothing else you can make the oc binary available within one pod and then run oc rsync from within that pod to sync to a different pod.


On Sun, Jul 9, 2017 at 12:27 PM, Aleksandar Lazic <aleks me2digital eu> wrote:
Hi Isuru Haththotuwa.

on Sonntag, 09. Juli 2017 at 16:10 was written:


Hi Marko,

On Sun, Jul 9, 2017 at 4:29 PM, Marko Lukša <
marko luksa gmail com> wrote:

There's no need to run sshd. Use oc rsh or oc exec.
Thanks for the reply. However, I am trying to run a rsync pull from a different pod to this particular pod, that is the reason why I'm trying to run sshd. Would this be possible with rsh?

yes in two steps.

oc rsync <POD>:/DIR .
oc rsync . <POD>:/DIR

maybe it's possible to run this in one step put I haven't used this for know.

oc rsync <SRC-POD>:/DIR <DEST-POD>:/DIR






On Jul 9, 2017 12:02 PM, "Isuru Haththotuwa" <isurulucky gmail com> wrote:

Hi,

I'm trying to do $subject. Using the minimal docker sample found at [1]. While this works perfectly in bare docker, when I'm trying to run on Openshift it fails with the error [2]. When I tried to re-create the ssh keys at startup with ssh-keygen -A, gave me the error [3]. I read that Openshift uses a random user id (usually 1000000000) when starting a container, I created a user with the same id, gave permission to /etc/ssh/ssh* and ran. Still did not work.

Seems a permission issue. Any idea what is going wrong here?

[1].
https://docs.docker.com/engine/examples/running_ssh_service/#build-an-eg_sshd-image

[2].
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Could not load host key: /etc/ssh/ssh_host_ed25519_key

[3].
open /etc/ssh/ssh_host_key failed: Permission denied.
ssh-keygen: generating new host keys: RSA1 Saving the key failed: /etc/ssh/ssh_host_key.
ssh-keygen: generating new host keys: RSA Saving the key failed: /etc/ssh/ssh_host_rsa_key.
open /etc/ssh/ssh_host_rsa_key failed: Permission denied.
open /etc/ssh/ssh_host_dsa_key failed: Permission denied.
ssh-keygen: generating new host keys: DSA Saving the key failed: /etc/ssh/ssh_host_dsa_key.
open /etc/ssh/ssh_host_ecdsa_key failed: Permission denied.
ssh-keygen: generating new host keys: ECDSA Saving the key failed: /etc/ssh/ssh_host_ecdsa_key.
open /etc/ssh/ssh_host_ed25519_key failed: Permission denied.
ssh-keygen: generating new host keys: ED25519 Saving the key failed: /etc/ssh/ssh_host_ed25519_key.

--
Thanks and Regards,
Isuru
_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users



--
Thanks and Regards,
Isuru



--
Best Regards
Aleks

_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users




--
Ben Parees | OpenShift

_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]