Skip to content

Commit 1814190

Browse files
Update active-directory-ds-join-ubuntu-linux-vm.md
1 parent be1d3da commit 1814190

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

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

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,13 @@ Provision an Ubuntu Linux virtual machine in Azure, using any of the following m
4343
4444

4545
## Connect remotely to the Ubuntu Linux virtual machine
46-
The Ubuntu virtual machine has been provisioned in Azure. The next task is to connect remotely to the virtual machine.
46+
The Ubuntu virtual machine has been provisioned in Azure. The next task is to connect remotely to the virtual machine using the local administrator account created while provisioning the VM.
4747

4848
Follow the instructions in the article [How to log on to a virtual machine running Linux](../virtual-machines/linux/mac-create-ssh-keys.md?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
4949

50-
The rest of the steps assume you use the PuTTY SSH client to connect to the Ubuntu virtual machine. For more information, see the [PuTTY Download page](http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html).
51-
52-
1. Open the PuTTY program.
53-
2. Enter the **Host Name** for the newly created Ubuntu virtual machine. In this example, our virtual machine has the host name 'contoso-ubuntu'. If you are not sure of the host name of your VM, refer to the VM dashboard on the Azure portal.
54-
55-
![PuTTY connect](./media/active-directory-domain-services-admin-guide/rhel-join-azure-portal-putty-connect.png)
56-
3. Log on to the virtual machine using the local administrator credentials you specified when the virtual machine was created. In this example, we used the local administrator account "mahesh".
57-
5850

5951
## Configure the hosts file on the Linux virtual machine
60-
Edit the /etc/hosts file and update your machine’s IP address and hostname.
52+
In your SSH terminal, edit the /etc/hosts file and update your machine’s IP address and hostname.
6153

6254
```
6355
sudo vi /etc/hosts
@@ -72,9 +64,9 @@ Here, 'contoso100.com' is the DNS domain name of your managed domain. 'contoso-u
7264

7365

7466
## Install required packages on the Linux virtual machine
75-
After connecting to the virtual machine, the next task is to install packages required for domain join on the virtual machine. Perform the following steps:
67+
Next, install packages required for domain join on the virtual machine. Perform the following steps:
7668

77-
1. In your PuTTY terminal, type the following command to download the package lists from the repositories. This command updates the package lists to get information on the newest versions of packages and their dependencies.
69+
1. In your SSH terminal, type the following command to download the package lists from the repositories. This command updates the package lists to get information on the newest versions of packages and their dependencies.
7870

7971
```
8072
sudo apt-get update
@@ -119,7 +111,7 @@ sudo systemctl start ntp
119111
## Join the Linux virtual machine to the managed domain
120112
Now that the required packages are installed on the Linux virtual machine, the next task is to join the virtual machine to the managed domain.
121113
122-
1. Discover the AAD Domain Services managed domain. In your PuTTY terminal, type the following command:
114+
1. Discover the AAD Domain Services managed domain. In your SSH terminal, type the following command:
123115
124116
```
125117
sudo realm discover CONTOSO100.COM
@@ -133,7 +125,7 @@ Now that the required packages are installed on the Linux virtual machine, the n
133125
* Check to see if you have updated the DNS server settings for the virtual network to point to the domain controllers of the managed domain.
134126
>
135127
136-
2. Initialize Kerberos. In your PuTTY terminal, type the following command:
128+
2. Initialize Kerberos. In your SSH terminal, type the following command:
137129
138130
> [!TIP]
139131
> * Ensure that you specify a user who belongs to the 'AAD DC Administrators' group.
@@ -144,7 +136,7 @@ Now that the required packages are installed on the Linux virtual machine, the n
144136
145137
```
146138
147-
3. Join the machine to the domain. In your PuTTY terminal, type the following command:
139+
3. Join the machine to the domain. In your SSH terminal, type the following command:
148140
149141
> [!TIP]
150142
> Use the same user account you specified in the preceding step ('kinit').
@@ -158,7 +150,7 @@ You should get a message ("Successfully enrolled machine in realm") when the mac
158150
159151
160152
## Update the SSSD configuration and restart the service
161-
1. In your PuTTY terminal, type the following command. Open the sssd.conf file and make the following change
153+
1. In your SSH terminal, type the following command. Open the sssd.conf file and make the following change
162154
```
163155
sudo vi /etc/sssd/sssd.conf
164156
```
@@ -189,17 +181,17 @@ session required pam_mkhomedir.so skel=/etc/skel/ umask=0077
189181
## Verify domain join
190182
Verify whether the machine has been successfully joined to the managed domain. Connect to the domain joined Ubuntu VM using a different SSH connection. Use a domain user account and then check to see if the user account is resolved correctly.
191183
192-
1. In your PuTTY terminal, type the following command to connect to the domain joined Ubuntu virtual machine using SSH. Use a domain account that belongs to the managed domain (for example, '[email protected]' in this case.)
184+
1. In your SSH terminal, type the following command to connect to the domain joined Ubuntu virtual machine using SSH. Use a domain account that belongs to the managed domain (for example, '[email protected]' in this case.)
193185
```
194186
ssh -l [email protected] contoso-ubuntu.contoso100.com
195187
```
196188
197-
2. In your PuTTY terminal, type the following command to see if the home directory was initialized correctly.
189+
2. In your SSH terminal, type the following command to see if the home directory was initialized correctly.
198190
```
199191
pwd
200192
```
201193
202-
3. In your PuTTY terminal, type the following command to see if the group memberships are being resolved correctly.
194+
3. In your SSH terminal, type the following command to see if the group memberships are being resolved correctly.
203195
```
204196
id
205197
```
@@ -208,7 +200,7 @@ Verify whether the machine has been successfully joined to the managed domain. C
208200
## Grant the 'AAD DC Administrators' group sudo privileges
209201
You can grant members of the 'AAD DC Administrators' group administrative privileges on the Ubuntu VM. The sudo file is located at /etc/sudoers. The members of AD groups added in sudoers can perform sudo.
210202
211-
1. In your PuTTY terminal, ensure you are logged in with superuser privileges. You can use the local administrator account you specified while creating the VM. Execute the following command:
203+
1. In your SSH terminal, ensure you are logged in with superuser privileges. You can use the local administrator account you specified while creating the VM. Execute the following command:
212204
```
213205
sudo vi /etc/sudoers
214206
```

0 commit comments

Comments
 (0)