Disconnected: No supported authentication methods available (server sent: publickey)












1















It is as the title says. When I try to connect to my sftp server with filezilla it says the following "Disconnected: No supported authentication methods available (server sent: publickey)", however before this message comes a window pops up asking me if I trust the servers host key and I say yes. Futhermore I can't find my .ssh directory anymore which contained the authorized_keys file. I am a little confused. Have anyone of you guys any tips or ideas to solve this issue?



Thanks on beforehand.










share|improve this question























  • Well if you have configured SSH to look in ~/.ssh for the authorized_keys file, and it does not exist, you will need to recreate it and re-copy your public key there (or generate a new keypair)

    – steeldriver
    Feb 19 '17 at 16:51











  • since I don't know where the keys, I am thinking of generating a new pair of keys but if the keys but if the keys are left somwhere on the server, will they be over written?

    – KV-2
    Feb 20 '17 at 16:35
















1















It is as the title says. When I try to connect to my sftp server with filezilla it says the following "Disconnected: No supported authentication methods available (server sent: publickey)", however before this message comes a window pops up asking me if I trust the servers host key and I say yes. Futhermore I can't find my .ssh directory anymore which contained the authorized_keys file. I am a little confused. Have anyone of you guys any tips or ideas to solve this issue?



Thanks on beforehand.










share|improve this question























  • Well if you have configured SSH to look in ~/.ssh for the authorized_keys file, and it does not exist, you will need to recreate it and re-copy your public key there (or generate a new keypair)

    – steeldriver
    Feb 19 '17 at 16:51











  • since I don't know where the keys, I am thinking of generating a new pair of keys but if the keys but if the keys are left somwhere on the server, will they be over written?

    – KV-2
    Feb 20 '17 at 16:35














1












1








1








It is as the title says. When I try to connect to my sftp server with filezilla it says the following "Disconnected: No supported authentication methods available (server sent: publickey)", however before this message comes a window pops up asking me if I trust the servers host key and I say yes. Futhermore I can't find my .ssh directory anymore which contained the authorized_keys file. I am a little confused. Have anyone of you guys any tips or ideas to solve this issue?



Thanks on beforehand.










share|improve this question














It is as the title says. When I try to connect to my sftp server with filezilla it says the following "Disconnected: No supported authentication methods available (server sent: publickey)", however before this message comes a window pops up asking me if I trust the servers host key and I say yes. Futhermore I can't find my .ssh directory anymore which contained the authorized_keys file. I am a little confused. Have anyone of you guys any tips or ideas to solve this issue?



Thanks on beforehand.







server ssh sftp






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 19 '17 at 16:02









KV-2KV-2

33139




33139













  • Well if you have configured SSH to look in ~/.ssh for the authorized_keys file, and it does not exist, you will need to recreate it and re-copy your public key there (or generate a new keypair)

    – steeldriver
    Feb 19 '17 at 16:51











  • since I don't know where the keys, I am thinking of generating a new pair of keys but if the keys but if the keys are left somwhere on the server, will they be over written?

    – KV-2
    Feb 20 '17 at 16:35



















  • Well if you have configured SSH to look in ~/.ssh for the authorized_keys file, and it does not exist, you will need to recreate it and re-copy your public key there (or generate a new keypair)

    – steeldriver
    Feb 19 '17 at 16:51











  • since I don't know where the keys, I am thinking of generating a new pair of keys but if the keys but if the keys are left somwhere on the server, will they be over written?

    – KV-2
    Feb 20 '17 at 16:35

















Well if you have configured SSH to look in ~/.ssh for the authorized_keys file, and it does not exist, you will need to recreate it and re-copy your public key there (or generate a new keypair)

– steeldriver
Feb 19 '17 at 16:51





Well if you have configured SSH to look in ~/.ssh for the authorized_keys file, and it does not exist, you will need to recreate it and re-copy your public key there (or generate a new keypair)

– steeldriver
Feb 19 '17 at 16:51













since I don't know where the keys, I am thinking of generating a new pair of keys but if the keys but if the keys are left somwhere on the server, will they be over written?

– KV-2
Feb 20 '17 at 16:35





since I don't know where the keys, I am thinking of generating a new pair of keys but if the keys but if the keys are left somwhere on the server, will they be over written?

– KV-2
Feb 20 '17 at 16:35










2 Answers
2






active

oldest

votes


















0














Your server is configured to deny anything else than public key-based authentication.



If you have lost your .ssh (and hence, your RSA, DSA, .... key pair), then you can no longer login to your remote system.



Depending on who's hosting this remote system, you may be able to use some KVM over IP, VNC console, ... reboot the server on some liveCD, ... Point is: if you can't find a copy of your SSH key pair, then you'll have to enable password-based authentication somehow.






share|improve this answer
























  • I will propably make a new pair of keys since I want key-based authentication.

    – KV-2
    Feb 20 '17 at 16:42



















-1














Please do not laugh, but make sure that you have not renamed that user's home directory as defined in /etc/passwd. I had long ago and since forgotten about it (I SSH with another account and sudo su over). Finding my error was hours long, but changing the folder name and rebooting was less than 60 seconds.
username:x:1007:1007::/var/www/new_folder:/bin/bash






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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f885028%2fdisconnected-no-supported-authentication-methods-available-server-sent-public%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Your server is configured to deny anything else than public key-based authentication.



    If you have lost your .ssh (and hence, your RSA, DSA, .... key pair), then you can no longer login to your remote system.



    Depending on who's hosting this remote system, you may be able to use some KVM over IP, VNC console, ... reboot the server on some liveCD, ... Point is: if you can't find a copy of your SSH key pair, then you'll have to enable password-based authentication somehow.






    share|improve this answer
























    • I will propably make a new pair of keys since I want key-based authentication.

      – KV-2
      Feb 20 '17 at 16:42
















    0














    Your server is configured to deny anything else than public key-based authentication.



    If you have lost your .ssh (and hence, your RSA, DSA, .... key pair), then you can no longer login to your remote system.



    Depending on who's hosting this remote system, you may be able to use some KVM over IP, VNC console, ... reboot the server on some liveCD, ... Point is: if you can't find a copy of your SSH key pair, then you'll have to enable password-based authentication somehow.






    share|improve this answer
























    • I will propably make a new pair of keys since I want key-based authentication.

      – KV-2
      Feb 20 '17 at 16:42














    0












    0








    0







    Your server is configured to deny anything else than public key-based authentication.



    If you have lost your .ssh (and hence, your RSA, DSA, .... key pair), then you can no longer login to your remote system.



    Depending on who's hosting this remote system, you may be able to use some KVM over IP, VNC console, ... reboot the server on some liveCD, ... Point is: if you can't find a copy of your SSH key pair, then you'll have to enable password-based authentication somehow.






    share|improve this answer













    Your server is configured to deny anything else than public key-based authentication.



    If you have lost your .ssh (and hence, your RSA, DSA, .... key pair), then you can no longer login to your remote system.



    Depending on who's hosting this remote system, you may be able to use some KVM over IP, VNC console, ... reboot the server on some liveCD, ... Point is: if you can't find a copy of your SSH key pair, then you'll have to enable password-based authentication somehow.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 19 '17 at 17:52









    SYNSYN

    526211




    526211













    • I will propably make a new pair of keys since I want key-based authentication.

      – KV-2
      Feb 20 '17 at 16:42



















    • I will propably make a new pair of keys since I want key-based authentication.

      – KV-2
      Feb 20 '17 at 16:42

















    I will propably make a new pair of keys since I want key-based authentication.

    – KV-2
    Feb 20 '17 at 16:42





    I will propably make a new pair of keys since I want key-based authentication.

    – KV-2
    Feb 20 '17 at 16:42













    -1














    Please do not laugh, but make sure that you have not renamed that user's home directory as defined in /etc/passwd. I had long ago and since forgotten about it (I SSH with another account and sudo su over). Finding my error was hours long, but changing the folder name and rebooting was less than 60 seconds.
    username:x:1007:1007::/var/www/new_folder:/bin/bash






    share|improve this answer




























      -1














      Please do not laugh, but make sure that you have not renamed that user's home directory as defined in /etc/passwd. I had long ago and since forgotten about it (I SSH with another account and sudo su over). Finding my error was hours long, but changing the folder name and rebooting was less than 60 seconds.
      username:x:1007:1007::/var/www/new_folder:/bin/bash






      share|improve this answer


























        -1












        -1








        -1







        Please do not laugh, but make sure that you have not renamed that user's home directory as defined in /etc/passwd. I had long ago and since forgotten about it (I SSH with another account and sudo su over). Finding my error was hours long, but changing the folder name and rebooting was less than 60 seconds.
        username:x:1007:1007::/var/www/new_folder:/bin/bash






        share|improve this answer













        Please do not laugh, but make sure that you have not renamed that user's home directory as defined in /etc/passwd. I had long ago and since forgotten about it (I SSH with another account and sudo su over). Finding my error was hours long, but changing the folder name and rebooting was less than 60 seconds.
        username:x:1007:1007::/var/www/new_folder:/bin/bash







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 21 '18 at 17:30









        wruckiewruckie

        1118




        1118






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f885028%2fdisconnected-no-supported-authentication-methods-available-server-sent-public%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

            Human spaceflight

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

            張江高科駅