SSH connection from host to VM drop after some time
Describe the issue
After some time ssh connection to VM is dropped. Network mode of VM using Share network.
Configuration
- UTM Version: 4.5.3
- macOS Version: Sonoma 14.5
- Mac Chip (Intel, M1, ...): M3
Debug log
debug.log
Upload VM
config.plist.zip
Probably an SSH timeout, in that case it has nothing to do with UTM.
Some Linux servers using SSH have an inactivity timeout.
Check the /etc/ssh/sshd_config file in the VM.
Actually, I'm not sure about this, from time to time my ssh connection drops out in the middle of working with the terminal. Maybe the logs indicate inactivity, but the snippet was taken after such an outage, I'll try to reproduce the scenario which I describe above and I'll attach log output here.
try ssh -vvv which dumps a lot of debug vomit, but you may see the cause of the disconnect.
try ssh -vvv <other ssh params> which dumps a lot of debug vomit, but you may see the cause of the disconnect.
I checked ssh config for SSH timeouts and I din't find any default timeouts..Actually I tried today run ssh in debug mode and I got this output:
debug3: obfuscate_keystroke_timing: stopping: chaff time expired (365 chaff packets sent)
debug3: obfuscate_keystroke_timing: starting: interval ~20ms
debug3: obfuscate_keystroke_timing: stopping: chaff time expired (113 chaff packets sent)
debug3: obfuscate_keystroke_timing: starting: interval ~20ms
debug3: obfuscate_keystroke_timing: stopping: chaff time expired (111 chaff packets sent)
debug3: obfuscate_keystroke_timing: starting: interval ~20ms
debug3: obfuscate_keystroke_timing: stopping: chaff time expired (48 chaff packets sent)
debug3: obfuscate_keystroke_timing: starting: interval ~20ms
debug3: obfuscate_keystroke_timing: stopping: chaff time expired (81 chaff packets sent)
debug3: obfuscate_keystroke_timing: starting: interval ~20ms
debug3: obfuscate_keystroke_timing: stopping: chaff time expired (111 chaff packets sent)
debug3: send packet: type 1
client_loop: send disconnect: Broken pipe
It seems that's not related directly with UTM...I'll try to investigate in VM more and I'll let you know..