>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
>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 /na01.safelinks .protection. outlook. com/?url= https%3A% 2F%2Fbugs. l net%2Fbugs% 2F1697635& data=02% 7C01%7Chonzhan% 40microsof 7C4ea3b6faff154 e2506e208d4b40d f8b4%7C72f988bf 86f141af91ab2d7 7C1%7C0% 7C6363314194796 99403&sdata= w4ZGkv0aAOBhj% 2Bz UImVHjpL% 2BjugAxQ% 3D&reserved= 0 erval" in sshd_config. /na01.safelinks .protection. outlook. com/?url= https%3A% 2F%2Fbugs. l net%2Fcloud- 2F%2Bbug% 2F1697635% 2F%2Bsubscripti ons&data= 02%7C01% 7Chonzha .com%7C4ea3b6fa ff154e2506e208d 4b40df8b4% 7C72f988bf86f d011db47% 7C1%7C0% 7C6363314194796 99403&sdata= 8a3LbWI 2BCVnjoVNyepDxl KXaOwErUYdF5% 2Bp6eGc% 3D&reserved= 0
Hongjiang Zhang
>--
>You received this bug notification because you are subscribed to the bug
>report.
>https:/
>aunchpad.
>t.com%
>cd011db47%
>at2k5fIGFBP2E
>
>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 "ClientAliveInt
> /etc/ssh/
>
>To manage notifications about this bug go to:
>https:/
>aunchpad.
>init%
>n%40microsoft
>141af91ab2d7c
>1pLT%