Skip to content

Commit 8050785

Browse files
authored
Merge pull request #99501 from BenoitNgs/patch-1
Add troubleshooting ssh azcmagent
2 parents 2759e56 + 4a9b389 commit 8050785

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

articles/azure-arc/servers/ssh-arc-troubleshoot.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,20 @@ Possible errors:
4747
- {"level":"fatal","msg":"sshproxy: error copying information from the connection: read tcp 192.168.1.180:60887-\u003e40.122.115.96:443: wsarecv: An existing connection was forcibly closed by the remote host.","time":"2022-02-24T13:50:40-05:00"}
4848

4949
Resolution:
50-
- Ensure that the SSHD service is running on the Arc-enabled server
51-
- Ensure that port 22 (or other non-default port) is listed in allowed incoming connections. Run ```azcmagent config list``` on the Arc-enabled server in an elevated session
52-
50+
- Ensure that the SSHD service is running on the Arc-enabled server.
51+
- Ensure that port 22 (or other non-default port) is listed in allowed incoming connections. Run `azcmagent config list` on the Arc-enabled server in an elevated session. The ssh port (22) isn't set by default, so you must add it. This setting is used by other services, like admin center, so just add port 22 without deleting previously added ports.
52+
53+
```powershell
54+
# Set 22 port:
55+
azcmagent config list
56+
azcmagent config get incomingconnections.port
57+
azcmagent config set incomingconnections.port 22
58+
azcmagent config
59+
60+
# Add multiple ports:
61+
azcmagent config set incomingconnections.port 22,3516
62+
```
63+
5364
## Azure permissions issues
5465

5566
### Incorrect role assignments

0 commit comments

Comments
 (0)