MeshCentral: Subdomain bug with SSH through relay
Describe your issue Hey, I’m having issues with getting SSH to connect to another device through a relay. The agent itself to the relay is working fine, all features work, but I’m not able to SSH/SFTP through the relay into other linux devices. From those devices themselves, I can connect to the targeted devices via SSH/SFTP fine.
Looking for help troubleshooting where this is failing. It prompts for a username & password, which I entered, and then it just freezes at “Setup…”
Server Software (please complete the following information):
- OS: alpine:3.15.2
- Virtualization: Docker
- Network: LAN/WAN
- Version: 1.1.11
- Node: 16.16.0
Relay Device:
- Device: Desktop
- OS: Windows 10 22H2
- Network: Different VLAN on same network
- Current Core Version (if known): Dec 9 2022, 2577413753
Your config.json file
{
"$schema": "http://info.meshcentral.com/downloads/meshcentral-config-schema.json",
"settings": {
"cert": "example.com",
"WANonly": true,
"TlsOffload": "aaaa",
"_LANonly": true,
"trustedProxy": ["172.0.0.0/8"],
"sessionKey": "aaaa",
"port": 443,
"redirPort": 80,
"relayDNS": "relay.example.com",
"MpsPort": 0,
"_redirAliasPort": 80,
"_agentLogDump": true,
"AgentPong": 300,
"SelfUpdate": false,
"AllowFraming": "false",
"cookieIpCheck": false,
"WebRTC": "false",
"debug": true,
"MariaDB": {
"host": "example.com",
"user": "meshcentral",
"password": "pp",
"database": "meshcentral"
}
},
"smtp": {
"host": "smtp.example.com",
"port": 25,
"from": "noreply@oexample.com"
},
"domains": {
"mesh": {
"title": "Org",
"title2": "My Org",
"newAccounts": false,
"footer": "Org",
"unknownUserRootRedirect": "/mesh/auth-saml",
"showPasswordLogin": false,
"ssh": true,
"novnc": true,
"ipkvm": true,
"CertUrl": "https://blah:443/",
"consentMessages": {
"consentTimeout": 30,
"autoAcceptOnTimeout": true
},
"ManageAllDeviceGroups": [ "myusers"],
"deviceMeshRouterLinks": {
"rdp": false, "ssh": false, "scp": false
}
}
}
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 17
Commits related to this issue
- fix relaying with subdomain #5394 Signed-off-by: si458 <simonsmith5521@gmail.com> — committed to Ylianst/MeshCentral by si458 5 months ago
First device is a Windows device (tried both a Windows Enterprise, as well as Windows Server device), so SSH isn’t a thing but Web RDP/Terminal work fine.
Yep.
Yep. I’m able to SSH from the first device (from both Putty and Windows shell) to the second device just fine.
Technically remote. It’s in the same network but different VLAN.
First = Windows Server 2019, but have also tried a Windows 10 1903 Enterprise device. Second = RHEL 7, but have also tried Ubuntu (I think)
Thanks for any help you can provide! It’s pretty weird.