UTM icon indicating copy to clipboard operation
UTM copied to clipboard

SSH connection from host to VM drop after some time

Open Koncpa opened this issue 1 year ago • 6 comments

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

Koncpa avatar Aug 06 '24 07:08 Koncpa

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.

freebrowser1 avatar Aug 08 '24 17:08 freebrowser1

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.

Koncpa avatar Aug 12 '24 10:08 Koncpa

try ssh -vvv which dumps a lot of debug vomit, but you may see the cause of the disconnect.

freebrowser1 avatar Aug 12 '24 12:08 freebrowser1

try ssh -vvv <other ssh params> which dumps a lot of debug vomit, but you may see the cause of the disconnect.

freebrowser1 avatar Aug 12 '24 12:08 freebrowser1

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

debug.log

Koncpa avatar Aug 13 '24 10:08 Koncpa

It seems that's not related directly with UTM...I'll try to investigate in VM more and I'll let you know..

Koncpa avatar Aug 13 '24 10:08 Koncpa