SSH only after login?

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











up vote
1
down vote

favorite












I've freshly setup a rather standard current Arch Linux and encounter a problem that I can not get a grip on:



  1. DHCP service is enabled and network is online (ping succeeds with hostname and IP address)

  2. OpenSSH service is enabled

  3. OpenSSH config allows public key and password

But I can not connect via SSH unless I also log in locally. Once I logged in locally once, I can logout in and out via SSH without problems, even when the local session is exited.



Journal says that SSH server starts up well before the local login.



Edit: Error message from Putty is "Connection refused"










share|improve this question























  • Please expand on what you mean by "can not connect". Does it refuse the TCP connection? Does it accept the connection but deny your key and/or password? Adding to your question the output of ssh -vvv user@host and the contents of the SSH daemon's log when attempting a connection would be helpful.
    – DopeGhoti
    18 mins ago














up vote
1
down vote

favorite












I've freshly setup a rather standard current Arch Linux and encounter a problem that I can not get a grip on:



  1. DHCP service is enabled and network is online (ping succeeds with hostname and IP address)

  2. OpenSSH service is enabled

  3. OpenSSH config allows public key and password

But I can not connect via SSH unless I also log in locally. Once I logged in locally once, I can logout in and out via SSH without problems, even when the local session is exited.



Journal says that SSH server starts up well before the local login.



Edit: Error message from Putty is "Connection refused"










share|improve this question























  • Please expand on what you mean by "can not connect". Does it refuse the TCP connection? Does it accept the connection but deny your key and/or password? Adding to your question the output of ssh -vvv user@host and the contents of the SSH daemon's log when attempting a connection would be helpful.
    – DopeGhoti
    18 mins ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I've freshly setup a rather standard current Arch Linux and encounter a problem that I can not get a grip on:



  1. DHCP service is enabled and network is online (ping succeeds with hostname and IP address)

  2. OpenSSH service is enabled

  3. OpenSSH config allows public key and password

But I can not connect via SSH unless I also log in locally. Once I logged in locally once, I can logout in and out via SSH without problems, even when the local session is exited.



Journal says that SSH server starts up well before the local login.



Edit: Error message from Putty is "Connection refused"










share|improve this question















I've freshly setup a rather standard current Arch Linux and encounter a problem that I can not get a grip on:



  1. DHCP service is enabled and network is online (ping succeeds with hostname and IP address)

  2. OpenSSH service is enabled

  3. OpenSSH config allows public key and password

But I can not connect via SSH unless I also log in locally. Once I logged in locally once, I can logout in and out via SSH without problems, even when the local session is exited.



Journal says that SSH server starts up well before the local login.



Edit: Error message from Putty is "Connection refused"







ssh arch-linux systemd openssh






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 6 mins ago

























asked 20 mins ago









Arne

1313




1313











  • Please expand on what you mean by "can not connect". Does it refuse the TCP connection? Does it accept the connection but deny your key and/or password? Adding to your question the output of ssh -vvv user@host and the contents of the SSH daemon's log when attempting a connection would be helpful.
    – DopeGhoti
    18 mins ago
















  • Please expand on what you mean by "can not connect". Does it refuse the TCP connection? Does it accept the connection but deny your key and/or password? Adding to your question the output of ssh -vvv user@host and the contents of the SSH daemon's log when attempting a connection would be helpful.
    – DopeGhoti
    18 mins ago















Please expand on what you mean by "can not connect". Does it refuse the TCP connection? Does it accept the connection but deny your key and/or password? Adding to your question the output of ssh -vvv user@host and the contents of the SSH daemon's log when attempting a connection would be helpful.
– DopeGhoti
18 mins ago




Please expand on what you mean by "can not connect". Does it refuse the TCP connection? Does it accept the connection but deny your key and/or password? Adding to your question the output of ssh -vvv user@host and the contents of the SSH daemon's log when attempting a connection would be helpful.
– DopeGhoti
18 mins ago










1 Answer
1






active

oldest

votes

















up vote
0
down vote













You need to install and enable haveged to generate sufficient entropy for the cryptographic exchange of keys. Possibly related to this bug report.






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',
    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%2f480658%2fssh-only-after-login%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    You need to install and enable haveged to generate sufficient entropy for the cryptographic exchange of keys. Possibly related to this bug report.






    share|improve this answer
























      up vote
      0
      down vote













      You need to install and enable haveged to generate sufficient entropy for the cryptographic exchange of keys. Possibly related to this bug report.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        You need to install and enable haveged to generate sufficient entropy for the cryptographic exchange of keys. Possibly related to this bug report.






        share|improve this answer












        You need to install and enable haveged to generate sufficient entropy for the cryptographic exchange of keys. Possibly related to this bug report.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 17 mins ago









        jasonwryan

        48.3k14133182




        48.3k14133182



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480658%2fssh-only-after-login%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Christian Cage

            How to properly install USB display driver for Fresco Logic FL2000DX on Ubuntu?