AZURE UBUNTU VM cloud shell time limit exceed

sagnik sen 1 Reputation point
2021-08-11T01:16:30.65+00:00

How to increase the time limit for cloud shell in Azure vm?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,826 questions
Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,203 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manu Philip 16,986 Reputation points MVP
    2021-08-11T03:11:06.81+00:00

    You may increase the timeout in the following file:
    /etc/ssh/sshd_config

    Locate the following values
    ClientAliveInterval
    ClientAliveCountMax

    Timeout value = ClientAliveInterval * ClientAliveCountMax
    You may set an example value as follows:

    ClientAliveInterval 1200
    ClientAliveCountMax 3

    0 comments No comments