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
Copy file name to clipboardExpand all lines: README.md
+3-8
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ We recommend using Windows Terminal for the best experience:
25
25
- Download the `.wsl` file from the [releases page](https://github.com/kaelemc/wsl-clab/releases/latest).
26
26
- Double click the `.wsl` file to install.
27
27
- Open 'Containerlab' from the start menu, or execute `wsl -d Containerlab`
28
-
- Complete the interactive shell selection. (if you plan to use [DevPod](#devpod), select `y` for SSH key copy).
28
+
- Complete the interactive shell selection.
29
29
- If you have Docker Desktop installed. See [Docker Desktop](#docker-desktop).
30
30
- Done! you can start labbing. (see [DevPod](#devpod) for a great way to lab).
31
31
@@ -115,7 +115,7 @@ Windows version: 10.0.19044.5131
115
115
116
116
You will also be presented with the choice to have the Fira Code [nerd font](https://www.nerdfonts.com/font-downloads) automatically installed on your system. **We recommend you install this font (especially if using `zsh` as your shell of choice)**.
117
117
118
-
Finally you'll be asked if you want to copy your Windows SSH keys into WSL Containerlab, this is to enable passwordless SSH access. This is an integral step for [DevPod](#devpod) usage, while the default might be **not** to, we recommed you enter `y` (Yes).
118
+
Finally at the end SSH keys will be copied from your Windows host into Containerlab WSL to enable passwordless SSH. This is an integral step for [DevPod](#devpod) usage.
119
119
120
120
If no SSH keys are found on your machine, an RSA keypair will be automatically generated.
121
121
@@ -183,12 +183,7 @@ If you have Docker desktop installed. You **must** ensure the integration with t
183
183
184
184
Check out [this video](https://www.youtube.com/watch?v=ceDrFx2K3jE) for more info.
185
185
186
-
Containerlab WSL was designed to support this lab experience out of the box. Just remember the following considerations.
187
-
188
-
- At the Containerlab WSL setup prompt, make sure you select `Y` to copy your Windows SSH keys into WSL. If you don't have SSH keys, they will be automatically generated for you.
189
-
190
-
> [!TIP]
191
-
> If you are already past setup, and have selected `N`, Don't worry. From inside Containerlab WSL execute `/etc/oobe.sh` and you can follow the interactive prompts again. It is not recommended to change your shell selection.
186
+
Containerlab WSL was designed to support this lab experience out of the box. Just remember the following consideration:
192
187
193
188
- When using DevPod, ensure Containerlab WSL is started (it does **not** automatically launch on Windows startup), you should leave the terminal window with Containerlab WSL open in the background.
echo$KEY| sudo tee -a /home/clab/.ssh/authorized_keys > /dev/null
123
118
;;
124
119
*)
125
-
echo"\033[34m\nCouldn't match key type, invoking Powershell may have failed. Create an issue at https://github.com/srl-labs/wsl-containerlab\033[0m"
120
+
echo"\033[34m\nSSH: Couldn't match key type, invoking Powershell may have failed. Create an issue at https://github.com/srl-labs/wsl-containerlab\033[0m"
126
121
esac
127
122
128
-
echo -e "\033[32mKeys successfully copied. You can SSH into Container WSL passwordless with: 'ssh clab@localhost -p 2222'\033[0m"
123
+
echo -e "\033[32mSSH keys successfully copied. You can SSH into Container WSL passwordless with: 'ssh clab@localhost -p 2222'. (Ensure Containerlab WSL is open)\033[0m"
129
124
}
130
125
131
126
# We know the user clab exists from Dockerfile with UID 1000
@@ -208,11 +203,7 @@ Select zsh configuration: "
208
203
esac
209
204
done
210
205
211
-
read -p "Copy Windows SSH keys for passwordless SSH access? (y/N) " -n 1 -r
0 commit comments