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
116
+
> 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`.
117
+
> 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
118
124
119
#### Setup and Run IPEX Multi-Node Container
125
120
@@ -131,8 +126,7 @@ SSH Server (Worker)
131
126
132
127
SSH Client (Launcher)
133
128
134
-
1.*Config File with Host IPs* : `/root/.ssh/config`
135
-
2.*Private User Key* : `/root/.ssh/id_rsa`
129
+
1.*Private User Key* : `/root/.ssh/id_rsa`
136
130
137
131
To add these files correctly please follow the steps described below.
138
132
@@ -146,47 +140,33 @@ To add these files correctly please follow the steps described below.
146
140
cat id_rsa.pub >> authorized_keys
147
141
```
148
142
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.
143
+
2. Configure the permissions and ownership for all of the files you have created so far.
bash -c 'ipexrun cpu /workspace/tests/ipex-resnet50.py --ipex --device cpu --backend ccl'
199
+
bash -c '/usr/sbin/sshd -D -p ${SSH_PORT}'
200
+
```
201
+
202
+
2. Add hosts to config. (**Note:** This is an optional step)
203
+
204
+
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`.
To build the images from source, clone the [Intel® AI Containers](https://github.com/intel/ai-containers) repository, follow the main `README.md` file to setup your environment, and run the following command:
0 commit comments