[Hyper-V][Azure]ssh session will timeout for a short while for FreeBSD on Azure

Bug #1697635 reported by Hongjiang Zhang on 2017-06-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Medium
Unassigned

Bug Description

If we install cloud-init on a FreeBSD VHD which does not install waagent previously, and upload this VHD to Azure. It works fine for SSH connection. But after a short while (~5 seconds), the SSH session is broken.

The reason is cloud-init does not set "ClientAliveInterval" in /etc/ssh/sshd_config.

Scott Moser (smoser) on 2017-06-14
Changed in cloud-init:
status: New → Confirmed
importance: Undecided → Medium
Scott Moser (smoser) wrote :

For what its worth, this affects Ubuntu too.
I never understood why this change is needed.
Why is the platform so agressive on dropping network connections?

>For what its worth, this affects Ubuntu too.
 >I never understood why this change is needed.
 >Why is the platform so agressive on dropping network connections?
 >

The ssh session will not break in local VM even after a long time idle, but on Azure, the session is broken after a short time of idling.
Currently, I did not find a simple solution to handle this except for change the sshd_config file (waagent has done it)
This is in fact an improvement of user experience. So, it is not quite urgent. Let me think about it further.

Thanks
Hongjiang Zhang
>--
 >You received this bug notification because you are subscribed to the bug
 >report.
 >https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.l
 >aunchpad.net%2Fbugs%2F1697635&data=02%7C01%7Chonzhan%40microsof
 >t.com%7C4ea3b6faff154e2506e208d4b40df8b4%7C72f988bf86f141af91ab2d7
 >cd011db47%7C1%7C0%7C636331419479699403&sdata=w4ZGkv0aAOBhj%2Bz
 >at2k5fIGFBP2EUImVHjpL%2BjugAxQ%3D&reserved=0
 >
 >Title:
 > [Hyper-V][Azure]ssh session will timeout for a short while for FreeBSD
 > on Azure
 >
 >Status in cloud-init:
 > Confirmed
 >
 >Bug description:
 > If we install cloud-init on a FreeBSD VHD which does not install
 > waagent previously, and upload this VHD to Azure. It works fine for
 > SSH connection. But after a short while (~5 seconds), the SSH session
 > is broken.
 >
 > The reason is cloud-init does not set "ClientAliveInterval" in
 > /etc/ssh/sshd_config.
 >
 >To manage notifications about this bug go to:
 >https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.l
 >aunchpad.net%2Fcloud-
 >init%2F%2Bbug%2F1697635%2F%2Bsubscriptions&data=02%7C01%7Chonzha
 >n%40microsoft.com%7C4ea3b6faff154e2506e208d4b40df8b4%7C72f988bf86f
 >141af91ab2d7cd011db47%7C1%7C0%7C636331419479699403&sdata=8a3LbWI
 >1pLT%2BCVnjoVNyepDxlKXaOwErUYdF5%2Bp6eGc%3D&reserved=0

do3meli (d-info-e) on 2018-03-17
tags: added: freebsd
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers