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.
3,645 questions
Microsoft Security Microsoft Defender Microsoft Defender for Cloud
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manu Philip 20,206 Reputation points MVP Volunteer Moderator
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.