Skip to content

Commit d9b4c1f

Browse files
authored
Add troubleshooting ssh azcmagent
Add troubleshooting cli to set ssh port on azcmagent.
1 parent be37e6a commit d9b4c1f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,15 @@ 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
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. By default 6515 port is set, you need to change to 22.
52+
53+
```powershell
54+
azcmagent config list
55+
azcmagent config get incomingconnections.port
56+
azcmagent config set incomingconnections.port 22
57+
azcmagent config
58+
```
5259

5360
## Azure permissions issues
5461

0 commit comments

Comments
 (0)