Lightsail user config/connection confusion












1















So I'm trying to sftp into my server(AWS lightsail, ubuntu) from my work machine (windows 10). The default ubuntu user is able to sftp and ssh in. However, the users I added aren't able to sftp or ssh in. I have tried to follow the solutions given here

The users are sudo users

The private key is in the right ppk format.

The public key is in the right place.

The correct ports are open

The authorized_keys file has the right permissions

I know this because last week myself and another remote dev were able to log into the server with one of the users. On putty I'm getting an invalid format error, so I redownloaded and reformatted the key, but I'm still getting an error. On Filezilla I am getting the error "No supported authentication methods". I want to be able to sftp as one of the users because they both have permissions to actual view files.



Edit: I don't mind if I can get the password login to work instead of logging in with the key. I just want to be able to move files.










share|improve this question





























    1















    So I'm trying to sftp into my server(AWS lightsail, ubuntu) from my work machine (windows 10). The default ubuntu user is able to sftp and ssh in. However, the users I added aren't able to sftp or ssh in. I have tried to follow the solutions given here

    The users are sudo users

    The private key is in the right ppk format.

    The public key is in the right place.

    The correct ports are open

    The authorized_keys file has the right permissions

    I know this because last week myself and another remote dev were able to log into the server with one of the users. On putty I'm getting an invalid format error, so I redownloaded and reformatted the key, but I'm still getting an error. On Filezilla I am getting the error "No supported authentication methods". I want to be able to sftp as one of the users because they both have permissions to actual view files.



    Edit: I don't mind if I can get the password login to work instead of logging in with the key. I just want to be able to move files.










    share|improve this question



























      1












      1








      1


      1






      So I'm trying to sftp into my server(AWS lightsail, ubuntu) from my work machine (windows 10). The default ubuntu user is able to sftp and ssh in. However, the users I added aren't able to sftp or ssh in. I have tried to follow the solutions given here

      The users are sudo users

      The private key is in the right ppk format.

      The public key is in the right place.

      The correct ports are open

      The authorized_keys file has the right permissions

      I know this because last week myself and another remote dev were able to log into the server with one of the users. On putty I'm getting an invalid format error, so I redownloaded and reformatted the key, but I'm still getting an error. On Filezilla I am getting the error "No supported authentication methods". I want to be able to sftp as one of the users because they both have permissions to actual view files.



      Edit: I don't mind if I can get the password login to work instead of logging in with the key. I just want to be able to move files.










      share|improve this question
















      So I'm trying to sftp into my server(AWS lightsail, ubuntu) from my work machine (windows 10). The default ubuntu user is able to sftp and ssh in. However, the users I added aren't able to sftp or ssh in. I have tried to follow the solutions given here

      The users are sudo users

      The private key is in the right ppk format.

      The public key is in the right place.

      The correct ports are open

      The authorized_keys file has the right permissions

      I know this because last week myself and another remote dev were able to log into the server with one of the users. On putty I'm getting an invalid format error, so I redownloaded and reformatted the key, but I'm still getting an error. On Filezilla I am getting the error "No supported authentication methods". I want to be able to sftp as one of the users because they both have permissions to actual view files.



      Edit: I don't mind if I can get the password login to work instead of logging in with the key. I just want to be able to move files.







      ubuntu ssh putty sftp amazon-web-services






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 27 at 20:05







      Morgan Smith

















      asked Feb 27 at 18:21









      Morgan SmithMorgan Smith

      64




      64






















          1 Answer
          1






          active

          oldest

          votes


















          0














          So here was the solution after tearing out my hair: the format for the new public key wasn't right. The remote dev's key was correct which is why I thought mine was correct, but mine wasn't. So here are the steps I did.

          SSH as root

          cd into /home/user

          nano .ssh/authorized_keys

          paste the key in a new line. To paste in lightsail's terminal you paste into the clipboard, then right click on the terminal line.

          Save and exit

          Connect!






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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%2fsuperuser.com%2fquestions%2f1409948%2flightsail-user-config-connection-confusion%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









            0














            So here was the solution after tearing out my hair: the format for the new public key wasn't right. The remote dev's key was correct which is why I thought mine was correct, but mine wasn't. So here are the steps I did.

            SSH as root

            cd into /home/user

            nano .ssh/authorized_keys

            paste the key in a new line. To paste in lightsail's terminal you paste into the clipboard, then right click on the terminal line.

            Save and exit

            Connect!






            share|improve this answer




























              0














              So here was the solution after tearing out my hair: the format for the new public key wasn't right. The remote dev's key was correct which is why I thought mine was correct, but mine wasn't. So here are the steps I did.

              SSH as root

              cd into /home/user

              nano .ssh/authorized_keys

              paste the key in a new line. To paste in lightsail's terminal you paste into the clipboard, then right click on the terminal line.

              Save and exit

              Connect!






              share|improve this answer


























                0












                0








                0







                So here was the solution after tearing out my hair: the format for the new public key wasn't right. The remote dev's key was correct which is why I thought mine was correct, but mine wasn't. So here are the steps I did.

                SSH as root

                cd into /home/user

                nano .ssh/authorized_keys

                paste the key in a new line. To paste in lightsail's terminal you paste into the clipboard, then right click on the terminal line.

                Save and exit

                Connect!






                share|improve this answer













                So here was the solution after tearing out my hair: the format for the new public key wasn't right. The remote dev's key was correct which is why I thought mine was correct, but mine wasn't. So here are the steps I did.

                SSH as root

                cd into /home/user

                nano .ssh/authorized_keys

                paste the key in a new line. To paste in lightsail's terminal you paste into the clipboard, then right click on the terminal line.

                Save and exit

                Connect!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 7 at 16:49









                Morgan SmithMorgan Smith

                64




                64






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f1409948%2flightsail-user-config-connection-confusion%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

                    Probability when a professor distributes a quiz and homework assignment to a class of n students.

                    Aardman Animations

                    Are they similar matrix