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

awf09j 30 Reputation points

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.
6,307 questions
0 comments No comments
{count} votes

Accepted answer
  1. Olga Osinskaya - MSFT 5,336 Reputation points Microsoft Employee

    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.


    Olga Os.

0 additional answers

Sort by: Most helpful