SSH (macOS) -> Azure VM (Ubuntu 18.04) = "Your account has expired; please contact your system administrator"

awf09j 35 Reputation points
2023-11-10T17:57:09+00:00

in azure when connecting from a macbook to an ubuntu 18.04 VM using ssh over public IP, i am getting your account has expired; please contact your system administrator. i am using terminal with ssh key authentication, and am using this exact same ssh key with another VM which I can still connect to fine. I just spun this VM up so I could update and create a new image off of it, but cannot connect. is this a bug in azure? how do i resolve? having to cycle the key would be a huge pain; not sure why it would not work only for this one VM.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,898 questions
0 comments No comments
{count} votes

Accepted answer
  1. Olga Os - MSFT 5,921 Reputation points Microsoft Employee
    2023-11-10T20:54:03.9433333+00:00

    Hello awf09j,

    Welcome to the MS Q&A Forum.

    To change the status of expired accounts in Linux OS, you can use the following commands:

    • sudo chage -E -1
    • sudo chage -l username

    Or reset the user access (password or ssh) to access the server to reset the expired account state.

    These commands can be executed through Run Commands from the Azure Portal or the Serial Console. You can refer to the following links for more information:

    Hope above will help you resolve the issue.

    Sincerely,

    Olga Os.


0 additional answers

Sort by: Most helpful

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.