Can't ssh with key after upgrade/new install of 18.04 server

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








up vote
0
down vote

favorite












I have Ubuntu 18.04 on both desktop and server. Trying to login as user (not root) to server with ssh fails with "Permission denied (publickey)". SSH worked before with server being 16.04, but not now after fresh install. I would love to post the output with ssh -vvv option but I get the "This looks like spam" objection here in Askubuntu. When I edit sshd_config to allow passwords I can login that way.







share|improve this question


















  • 1




    Upload the output of ssh -vvv to pastebin and include a link to it in your question
    – Emily
    May 15 at 17:09











  • When I set StrictModes to no it works, but I can't work out what permissions I should set. I set .ssh to 700 on both client and host machine, but no go.
    – Mårten
    May 16 at 18:21














up vote
0
down vote

favorite












I have Ubuntu 18.04 on both desktop and server. Trying to login as user (not root) to server with ssh fails with "Permission denied (publickey)". SSH worked before with server being 16.04, but not now after fresh install. I would love to post the output with ssh -vvv option but I get the "This looks like spam" objection here in Askubuntu. When I edit sshd_config to allow passwords I can login that way.







share|improve this question


















  • 1




    Upload the output of ssh -vvv to pastebin and include a link to it in your question
    – Emily
    May 15 at 17:09











  • When I set StrictModes to no it works, but I can't work out what permissions I should set. I set .ssh to 700 on both client and host machine, but no go.
    – Mårten
    May 16 at 18:21












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have Ubuntu 18.04 on both desktop and server. Trying to login as user (not root) to server with ssh fails with "Permission denied (publickey)". SSH worked before with server being 16.04, but not now after fresh install. I would love to post the output with ssh -vvv option but I get the "This looks like spam" objection here in Askubuntu. When I edit sshd_config to allow passwords I can login that way.







share|improve this question














I have Ubuntu 18.04 on both desktop and server. Trying to login as user (not root) to server with ssh fails with "Permission denied (publickey)". SSH worked before with server being 16.04, but not now after fresh install. I would love to post the output with ssh -vvv option but I get the "This looks like spam" objection here in Askubuntu. When I edit sshd_config to allow passwords I can login that way.









share|improve this question













share|improve this question




share|improve this question








edited Jul 11 at 17:47









Alexey Vazhnov

9117




9117










asked May 15 at 16:59









MÃ¥rten

13




13







  • 1




    Upload the output of ssh -vvv to pastebin and include a link to it in your question
    – Emily
    May 15 at 17:09











  • When I set StrictModes to no it works, but I can't work out what permissions I should set. I set .ssh to 700 on both client and host machine, but no go.
    – Mårten
    May 16 at 18:21












  • 1




    Upload the output of ssh -vvv to pastebin and include a link to it in your question
    – Emily
    May 15 at 17:09











  • When I set StrictModes to no it works, but I can't work out what permissions I should set. I set .ssh to 700 on both client and host machine, but no go.
    – Mårten
    May 16 at 18:21







1




1




Upload the output of ssh -vvv to pastebin and include a link to it in your question
– Emily
May 15 at 17:09





Upload the output of ssh -vvv to pastebin and include a link to it in your question
– Emily
May 15 at 17:09













When I set StrictModes to no it works, but I can't work out what permissions I should set. I set .ssh to 700 on both client and host machine, but no go.
– Mårten
May 16 at 18:21




When I set StrictModes to no it works, but I can't work out what permissions I should set. I set .ssh to 700 on both client and host machine, but no go.
– Mårten
May 16 at 18:21










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Solved. Double checking the permissions in my home directory on the host showed I had it writable by my group. My bad.






share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    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: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036622%2fcant-ssh-with-key-after-upgrade-new-install-of-18-04-server%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













    Solved. Double checking the permissions in my home directory on the host showed I had it writable by my group. My bad.






    share|improve this answer


























      up vote
      0
      down vote













      Solved. Double checking the permissions in my home directory on the host showed I had it writable by my group. My bad.






      share|improve this answer
























        up vote
        0
        down vote










        up vote
        0
        down vote









        Solved. Double checking the permissions in my home directory on the host showed I had it writable by my group. My bad.






        share|improve this answer














        Solved. Double checking the permissions in my home directory on the host showed I had it writable by my group. My bad.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited May 16 at 18:32

























        answered May 16 at 18:20









        MÃ¥rten

        13




        13






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036622%2fcant-ssh-with-key-after-upgrade-new-install-of-18-04-server%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491