SSH connection “This account is currently not available”

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















I tried to connect at a SSH server in 3 different ways, but nothing works:



  • using putty - after I enter my password the putty window automatically closed, and in the log file there is: "This account is currently not available."



  • using Windows powershell - I receive the following message:



    Last login: Mon Feb ......
    This account is currently not available.
    Connection to xx.xx closed.


  • using Ubuntu terminal I receive the same message as in case of Windows powershell.

In windows I think that I'm on sftp, but I don't know how to change to shell.



I also found this link, but I cannot find the mentioned option in Windows.



In Ubuntu, my user is on /bin/bash.



How to solve this problem?










share|improve this question
























  • Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, please edit your post to include additional context Can you please verify what login shell the user you logging in is using, e.g. under /etc/password is the user listed with a /bin/false or /sbin/nologin shell? Thank you!

    – kemotep
    Feb 4 at 18:56















0















I tried to connect at a SSH server in 3 different ways, but nothing works:



  • using putty - after I enter my password the putty window automatically closed, and in the log file there is: "This account is currently not available."



  • using Windows powershell - I receive the following message:



    Last login: Mon Feb ......
    This account is currently not available.
    Connection to xx.xx closed.


  • using Ubuntu terminal I receive the same message as in case of Windows powershell.

In windows I think that I'm on sftp, but I don't know how to change to shell.



I also found this link, but I cannot find the mentioned option in Windows.



In Ubuntu, my user is on /bin/bash.



How to solve this problem?










share|improve this question
























  • Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, please edit your post to include additional context Can you please verify what login shell the user you logging in is using, e.g. under /etc/password is the user listed with a /bin/false or /sbin/nologin shell? Thank you!

    – kemotep
    Feb 4 at 18:56













0












0








0








I tried to connect at a SSH server in 3 different ways, but nothing works:



  • using putty - after I enter my password the putty window automatically closed, and in the log file there is: "This account is currently not available."



  • using Windows powershell - I receive the following message:



    Last login: Mon Feb ......
    This account is currently not available.
    Connection to xx.xx closed.


  • using Ubuntu terminal I receive the same message as in case of Windows powershell.

In windows I think that I'm on sftp, but I don't know how to change to shell.



I also found this link, but I cannot find the mentioned option in Windows.



In Ubuntu, my user is on /bin/bash.



How to solve this problem?










share|improve this question
















I tried to connect at a SSH server in 3 different ways, but nothing works:



  • using putty - after I enter my password the putty window automatically closed, and in the log file there is: "This account is currently not available."



  • using Windows powershell - I receive the following message:



    Last login: Mon Feb ......
    This account is currently not available.
    Connection to xx.xx closed.


  • using Ubuntu terminal I receive the same message as in case of Windows powershell.

In windows I think that I'm on sftp, but I don't know how to change to shell.



I also found this link, but I cannot find the mentioned option in Windows.



In Ubuntu, my user is on /bin/bash.



How to solve this problem?







ssh login accounts






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 4 at 21:55









Ouki

3,85421425




3,85421425










asked Feb 4 at 18:27









user335152user335152

6




6












  • Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, please edit your post to include additional context Can you please verify what login shell the user you logging in is using, e.g. under /etc/password is the user listed with a /bin/false or /sbin/nologin shell? Thank you!

    – kemotep
    Feb 4 at 18:56

















  • Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, please edit your post to include additional context Can you please verify what login shell the user you logging in is using, e.g. under /etc/password is the user listed with a /bin/false or /sbin/nologin shell? Thank you!

    – kemotep
    Feb 4 at 18:56
















Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, please edit your post to include additional context Can you please verify what login shell the user you logging in is using, e.g. under /etc/password is the user listed with a /bin/false or /sbin/nologin shell? Thank you!

– kemotep
Feb 4 at 18:56





Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, please edit your post to include additional context Can you please verify what login shell the user you logging in is using, e.g. under /etc/password is the user listed with a /bin/false or /sbin/nologin shell? Thank you!

– kemotep
Feb 4 at 18:56










1 Answer
1






active

oldest

votes


















3














Chances are, the shell for the account to which you're trying to log in has been set to /usr/sbin/nologin, which outputs that text and returns an exit code of 1:



$ /usr/sbin/nologin
This account is currently not available.
$ echo $?
1


Since this 'shell' is not interactive, your connection immediately closes when its execution concludes.






share|improve this answer






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f498648%2fssh-connection-this-account-is-currently-not-available%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    Chances are, the shell for the account to which you're trying to log in has been set to /usr/sbin/nologin, which outputs that text and returns an exit code of 1:



    $ /usr/sbin/nologin
    This account is currently not available.
    $ echo $?
    1


    Since this 'shell' is not interactive, your connection immediately closes when its execution concludes.






    share|improve this answer



























      3














      Chances are, the shell for the account to which you're trying to log in has been set to /usr/sbin/nologin, which outputs that text and returns an exit code of 1:



      $ /usr/sbin/nologin
      This account is currently not available.
      $ echo $?
      1


      Since this 'shell' is not interactive, your connection immediately closes when its execution concludes.






      share|improve this answer

























        3












        3








        3







        Chances are, the shell for the account to which you're trying to log in has been set to /usr/sbin/nologin, which outputs that text and returns an exit code of 1:



        $ /usr/sbin/nologin
        This account is currently not available.
        $ echo $?
        1


        Since this 'shell' is not interactive, your connection immediately closes when its execution concludes.






        share|improve this answer













        Chances are, the shell for the account to which you're trying to log in has been set to /usr/sbin/nologin, which outputs that text and returns an exit code of 1:



        $ /usr/sbin/nologin
        This account is currently not available.
        $ echo $?
        1


        Since this 'shell' is not interactive, your connection immediately closes when its execution concludes.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 4 at 18:30









        DopeGhotiDopeGhoti

        45.8k55988




        45.8k55988



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f498648%2fssh-connection-this-account-is-currently-not-available%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)