You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo '## Enable DEBUG log. You can ignore this but this may help you debug any issue while enabling SSHD for the first time' > /var/run/sshd_config && \
> **Note:** Passwordless SSH connection is also enabled in the image.
117
-
> The container does not contain the SSH ID keys. The user needs to mount those keys at `/root/.ssh/id_rsa` and `/root/.ssh/id_rsa.pub`.
118
-
> User also need to append content of id_rsa.pub in `/etc/ssh/authorized_keys` in the SSH server container.
119
-
> Since the SSH key is not owned by default user account in docker, please also do "chmod 644 id_rsa.pub; chmod 644 id_rsa" to grant read access for default user account.
120
-
> Users could also use "/usr/bin/ssh-keygen -t rsa -b 4096 -N '' -f ~/mnt/ssh_key/id_rsa" to generate a new SSH Key inside the container.
121
-
> Users need to mount a config file to list all hostnames at location `/root/.ssh/config` on the SSH client container.
122
-
> Once all files are added
117
+
> The container does not contain the SSH ID keys. The user needs to mount those keys at `/root/.ssh/id_rsa` and `/etc/ssh/authorized_keys`.
118
+
> Since the SSH key is not owned by default user account in docker, please also do "chmod 600 authorized_keys; chmod 600 id_rsa" to grant read access for default user account.
123
119
124
120
#### Setup and Run IPEX Multi-Node Container
125
121
@@ -131,8 +127,7 @@ SSH Server (Worker)
131
127
132
128
SSH Client (Launcher)
133
129
134
-
1.*Config File with Host IPs* : `/root/.ssh/config`
135
-
2.*Private User Key* : `/root/.ssh/id_rsa`
130
+
1.*Private User Key* : `/root/.ssh/id_rsa`
136
131
137
132
To add these files correctly please follow the steps described below.
138
133
@@ -146,47 +141,33 @@ To add these files correctly please follow the steps described below.
146
141
cat id_rsa.pub >> authorized_keys
147
142
```
148
143
149
-
2. Add hosts to config
150
-
151
-
The launcher container needs to have the a config file with all hostnames and ports specified. An example of a hostfile is provided below.
144
+
2. Configure the permissions and ownership for all of the files you have created so far.
2. Add hosts to config. (**Note:** This is an optional step)
204
+
205
+
User can optionally mount their own custom client config file to define a list of hosts and ports where the SSH server is running inside the container. An example of a hostfile is provided below. This file is supposed to be mounted in the launcher container at `/etc/ssh/ssh_config`.
0 commit comments