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: support/azure/virtual-machines/linux/troubleshoot-ssh-permissions-too-open.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,8 +46,8 @@ If the [VM agent](../windows/windows-azure-guest-agent.md#step-1-check-whether-t
46
46
1. Sign in to the [Azure portal](https://portal.azure.com), and then go to the VM page.
47
47
1. In the **Operations** section, select **Run Command** > **RunScriptShell**, and then run the following script. Replace `<username>` with your user name.
48
48
49
-
```bash
50
-
chmod –R 644 /etc/ssh
49
+
```bash
50
+
chmod -R 644 /etc/ssh
51
51
chmod 600 /etc/ssh/ssh_host*key
52
52
chmod 600 /etc/ssh/sshd_config
53
53
chmod 755 /home/<username>
@@ -62,8 +62,8 @@ If the [VM agent](../windows/windows-azure-guest-agent.md#step-1-check-whether-t
62
62
1. Connect to the VM by using Azure Serial Console, and log on to your account.
63
63
1. Run the following command to restore the appropriate permissions to the configuration directory and the files. Replace `<username>` with your user name.
64
64
65
-
```bash
66
-
chmod –R 644 /etc/ssh
65
+
```bash
66
+
chmod -R 644 /etc/ssh
67
67
chmod 600 /etc/ssh/ssh_host*key
68
68
chmod 600 /etc/ssh/sshd_config
69
69
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
100
100
101
101
1. Restore the appropriate permissions to the configuration directory and files. Replace `<username>` with your user name.
102
102
103
-
```
103
+
```bash
104
104
chmod –R 644 /repair/etc/ssh
105
105
chmod 600 /repair/etc/ssh/ssh_host*key
106
106
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
0 commit comments