Skip to content

Commit b018048

Browse files
Update join-rhel-linux-vm.md
1 parent 7da9c4d commit b018048

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/active-directory-domain-services/join-rhel-linux-vm.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,21 +265,21 @@ By default, users can only sign in to a VM using SSH public key-based authentica
265265

266266
1. Open the *sshd_conf* file with an editor:
267267

268-
```console
268+
```bash
269269
sudo vi /etc/ssh/sshd_config
270270
```
271271

272272
1. Update the line for *PasswordAuthentication* to *yes*:
273273

274-
```console
274+
```bash
275275
PasswordAuthentication yes
276276
```
277277

278278
When done, save and exit the *sshd_conf* file using the `:wq` command of the editor.
279279

280280
1. To apply the changes and let users sign in using a password, restart the SSH service.
281281

282-
```console
282+
```bash
283283
sudo systemctl restart sshd
284284
```
285285
---
@@ -310,21 +310,21 @@ To verify that the VM has been successfully joined to the managed domain, start
310310
1. Create a new SSH connection from your console. Use a domain account that belongs to the managed domain using the `ssh -l` command, such as `[email protected]` and then enter the address of your VM, such as *rhel.aaddscontoso.com*. If you use the Azure Cloud Shell, use the public IP address of the VM rather than the internal DNS name.
311311

312312
```bash
313-
ssh -l [email protected] rhel.aaddscontoso.com
313+
sudo ssh -l [email protected] rhel.aaddscontoso.com
314314
```
315315

316316
1. When you've successfully connected to the VM, verify that the home directory was initialized correctly:
317317
318318
```bash
319-
pwd
319+
sudo pwd
320320
```
321321
322322
You should be in the */home* directory with your own directory that matches the user account.
323323
324324
1. Now check that the group memberships are being resolved correctly:
325325
326326
```bash
327-
id
327+
sudo id
328328
```
329329
330330
You should see your group memberships from the managed domain.

0 commit comments

Comments
 (0)