Skip to content

Commit 6566415

Browse files
Merge pull request #9883 from msaenzbosupport/patch-39
AB#7898: Fix command syntax for SSH permissions in documentation - minor but important typo fixed. I will approve and merge in the interests of time.
2 parents 1dc4c5c + 8518d06 commit 6566415

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

support/azure/virtual-machines/linux/troubleshoot-ssh-permissions-too-open.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ If the [VM agent](../windows/windows-azure-guest-agent.md#step-1-check-whether-t
4646
1. Sign in to the [Azure portal](https://portal.azure.com), and then go to the VM page.
4747
1. In the **Operations** section, select **Run Command** > **RunScriptShell**, and then run the following script. Replace `<username>` with your user name.
4848

49-
``` bash
50-
chmod R 644 /etc/ssh
49+
```bash
50+
chmod -R 644 /etc/ssh
5151
chmod 600 /etc/ssh/ssh_host*key
5252
chmod 600 /etc/ssh/sshd_config
5353
chmod 755 /home/<username>
@@ -62,8 +62,8 @@ If the [VM agent](../windows/windows-azure-guest-agent.md#step-1-check-whether-t
6262
1. Connect to the VM by using Azure Serial Console, and log on to your account.
6363
1. Run the following command to restore the appropriate permissions to the configuration directory and the files. Replace `<username>` with your user name.
6464

65-
``` bash
66-
chmod R 644 /etc/ssh
65+
```bash
66+
chmod -R 644 /etc/ssh
6767
chmod 600 /etc/ssh/ssh_host*key
6868
chmod 600 /etc/ssh/sshd_config
6969
chmod 755 /home/<username>
@@ -100,7 +100,7 @@ If you can't access the VM by using the Azure Serial Console, then the repair mu
100100

101101
1. Restore the appropriate permissions to the configuration directory and files. Replace `<username>` with your user name.
102102

103-
```
103+
```bash
104104
chmod –R 644 /repair/etc/ssh
105105
chmod 600 /repair/etc/ssh/ssh_host*key
106106
chmod 600 /repair/etc/ssh/sshd_config
@@ -113,7 +113,7 @@ If you can't access the VM by using the Azure Serial Console, then the repair mu
113113

114114
1. Unmount the boot partition:
115115

116-
```
116+
```bash
117117
umount /repair
118118
```
119119

0 commit comments

Comments
 (0)