How do I remove another computer which has remote access to my laptop?












2














I visited a friend recently and he uploaded Linux on my laptop. He uploaded many programs from his laptop unto mine using a terminal. To do this he had to add a very long code from his laptop onto my laptop using my terminal and visa versa from mine to his using his terminal to give him remote access through his wifi to my laptop. I am new to the Linux OS and still have much to learn so please bear with my ignorance.



My question: How do I find that long code and remove it and what would be the right terminology to describe what he did on my laptop? Did he merely create a network group through terminal or did he open a kind of a door which only he knows of?



$ dpkg -s openssh-server | grep Status
Status: install ok installed









share|improve this question




















  • 2




    Please edit and add the output of dpkg -s openssh-server | grep Status to your question. This checks whether this package is installed on your system, ssh is the way to set up a connection like you describe. If it is installed and you don’t want it to be, simply remove it with sudo apt remove openssh-server and restart.
    – dessert
    Dec 11 at 22:37










  • There are plenty of ways to allow remote access to your computer, ranging from standard solutions (like ssh) to secret backdoors. Do you fully trust your friend? If so, ask them to describe what they did and to undo it, they know it much better than any of us could figure out. If not, reinstall your system from scratch, without their help.
    – egmont
    Dec 11 at 22:48










  • By the looks of it I am almost certain that it is an openssh-server. I checked and openssh-server is installed. How can I check for the accounts that has access to it? The article at help.ubuntu.com/community/SSH/OpenSSH/Configuring helped allot, but I cant seem to find a way to check for accounts.
    – Codering
    Dec 11 at 23:10












  • I don`t want to assume that the openssh-server is in fact the way he gained access to my laptop. I would like to verify it. Also as I am still learning to code and have little to no knowledge of ssh, I think it would make a good exercise to manually remove his account.
    – Codering
    Dec 11 at 23:44






  • 3




    Another option would be to ask your friend what he did to your laptop. Our knowledge is naturally limited.
    – WinEunuuchs2Unix
    Dec 12 at 2:15
















2














I visited a friend recently and he uploaded Linux on my laptop. He uploaded many programs from his laptop unto mine using a terminal. To do this he had to add a very long code from his laptop onto my laptop using my terminal and visa versa from mine to his using his terminal to give him remote access through his wifi to my laptop. I am new to the Linux OS and still have much to learn so please bear with my ignorance.



My question: How do I find that long code and remove it and what would be the right terminology to describe what he did on my laptop? Did he merely create a network group through terminal or did he open a kind of a door which only he knows of?



$ dpkg -s openssh-server | grep Status
Status: install ok installed









share|improve this question




















  • 2




    Please edit and add the output of dpkg -s openssh-server | grep Status to your question. This checks whether this package is installed on your system, ssh is the way to set up a connection like you describe. If it is installed and you don’t want it to be, simply remove it with sudo apt remove openssh-server and restart.
    – dessert
    Dec 11 at 22:37










  • There are plenty of ways to allow remote access to your computer, ranging from standard solutions (like ssh) to secret backdoors. Do you fully trust your friend? If so, ask them to describe what they did and to undo it, they know it much better than any of us could figure out. If not, reinstall your system from scratch, without their help.
    – egmont
    Dec 11 at 22:48










  • By the looks of it I am almost certain that it is an openssh-server. I checked and openssh-server is installed. How can I check for the accounts that has access to it? The article at help.ubuntu.com/community/SSH/OpenSSH/Configuring helped allot, but I cant seem to find a way to check for accounts.
    – Codering
    Dec 11 at 23:10












  • I don`t want to assume that the openssh-server is in fact the way he gained access to my laptop. I would like to verify it. Also as I am still learning to code and have little to no knowledge of ssh, I think it would make a good exercise to manually remove his account.
    – Codering
    Dec 11 at 23:44






  • 3




    Another option would be to ask your friend what he did to your laptop. Our knowledge is naturally limited.
    – WinEunuuchs2Unix
    Dec 12 at 2:15














2












2








2







I visited a friend recently and he uploaded Linux on my laptop. He uploaded many programs from his laptop unto mine using a terminal. To do this he had to add a very long code from his laptop onto my laptop using my terminal and visa versa from mine to his using his terminal to give him remote access through his wifi to my laptop. I am new to the Linux OS and still have much to learn so please bear with my ignorance.



My question: How do I find that long code and remove it and what would be the right terminology to describe what he did on my laptop? Did he merely create a network group through terminal or did he open a kind of a door which only he knows of?



$ dpkg -s openssh-server | grep Status
Status: install ok installed









share|improve this question















I visited a friend recently and he uploaded Linux on my laptop. He uploaded many programs from his laptop unto mine using a terminal. To do this he had to add a very long code from his laptop onto my laptop using my terminal and visa versa from mine to his using his terminal to give him remote access through his wifi to my laptop. I am new to the Linux OS and still have much to learn so please bear with my ignorance.



My question: How do I find that long code and remove it and what would be the right terminology to describe what he did on my laptop? Did he merely create a network group through terminal or did he open a kind of a door which only he knows of?



$ dpkg -s openssh-server | grep Status
Status: install ok installed






command-line networking remote-access






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 12 at 15:09









kenorb

4,28913750




4,28913750










asked Dec 11 at 22:26









Codering

113




113








  • 2




    Please edit and add the output of dpkg -s openssh-server | grep Status to your question. This checks whether this package is installed on your system, ssh is the way to set up a connection like you describe. If it is installed and you don’t want it to be, simply remove it with sudo apt remove openssh-server and restart.
    – dessert
    Dec 11 at 22:37










  • There are plenty of ways to allow remote access to your computer, ranging from standard solutions (like ssh) to secret backdoors. Do you fully trust your friend? If so, ask them to describe what they did and to undo it, they know it much better than any of us could figure out. If not, reinstall your system from scratch, without their help.
    – egmont
    Dec 11 at 22:48










  • By the looks of it I am almost certain that it is an openssh-server. I checked and openssh-server is installed. How can I check for the accounts that has access to it? The article at help.ubuntu.com/community/SSH/OpenSSH/Configuring helped allot, but I cant seem to find a way to check for accounts.
    – Codering
    Dec 11 at 23:10












  • I don`t want to assume that the openssh-server is in fact the way he gained access to my laptop. I would like to verify it. Also as I am still learning to code and have little to no knowledge of ssh, I think it would make a good exercise to manually remove his account.
    – Codering
    Dec 11 at 23:44






  • 3




    Another option would be to ask your friend what he did to your laptop. Our knowledge is naturally limited.
    – WinEunuuchs2Unix
    Dec 12 at 2:15














  • 2




    Please edit and add the output of dpkg -s openssh-server | grep Status to your question. This checks whether this package is installed on your system, ssh is the way to set up a connection like you describe. If it is installed and you don’t want it to be, simply remove it with sudo apt remove openssh-server and restart.
    – dessert
    Dec 11 at 22:37










  • There are plenty of ways to allow remote access to your computer, ranging from standard solutions (like ssh) to secret backdoors. Do you fully trust your friend? If so, ask them to describe what they did and to undo it, they know it much better than any of us could figure out. If not, reinstall your system from scratch, without their help.
    – egmont
    Dec 11 at 22:48










  • By the looks of it I am almost certain that it is an openssh-server. I checked and openssh-server is installed. How can I check for the accounts that has access to it? The article at help.ubuntu.com/community/SSH/OpenSSH/Configuring helped allot, but I cant seem to find a way to check for accounts.
    – Codering
    Dec 11 at 23:10












  • I don`t want to assume that the openssh-server is in fact the way he gained access to my laptop. I would like to verify it. Also as I am still learning to code and have little to no knowledge of ssh, I think it would make a good exercise to manually remove his account.
    – Codering
    Dec 11 at 23:44






  • 3




    Another option would be to ask your friend what he did to your laptop. Our knowledge is naturally limited.
    – WinEunuuchs2Unix
    Dec 12 at 2:15








2




2




Please edit and add the output of dpkg -s openssh-server | grep Status to your question. This checks whether this package is installed on your system, ssh is the way to set up a connection like you describe. If it is installed and you don’t want it to be, simply remove it with sudo apt remove openssh-server and restart.
– dessert
Dec 11 at 22:37




Please edit and add the output of dpkg -s openssh-server | grep Status to your question. This checks whether this package is installed on your system, ssh is the way to set up a connection like you describe. If it is installed and you don’t want it to be, simply remove it with sudo apt remove openssh-server and restart.
– dessert
Dec 11 at 22:37












There are plenty of ways to allow remote access to your computer, ranging from standard solutions (like ssh) to secret backdoors. Do you fully trust your friend? If so, ask them to describe what they did and to undo it, they know it much better than any of us could figure out. If not, reinstall your system from scratch, without their help.
– egmont
Dec 11 at 22:48




There are plenty of ways to allow remote access to your computer, ranging from standard solutions (like ssh) to secret backdoors. Do you fully trust your friend? If so, ask them to describe what they did and to undo it, they know it much better than any of us could figure out. If not, reinstall your system from scratch, without their help.
– egmont
Dec 11 at 22:48












By the looks of it I am almost certain that it is an openssh-server. I checked and openssh-server is installed. How can I check for the accounts that has access to it? The article at help.ubuntu.com/community/SSH/OpenSSH/Configuring helped allot, but I cant seem to find a way to check for accounts.
– Codering
Dec 11 at 23:10






By the looks of it I am almost certain that it is an openssh-server. I checked and openssh-server is installed. How can I check for the accounts that has access to it? The article at help.ubuntu.com/community/SSH/OpenSSH/Configuring helped allot, but I cant seem to find a way to check for accounts.
– Codering
Dec 11 at 23:10














I don`t want to assume that the openssh-server is in fact the way he gained access to my laptop. I would like to verify it. Also as I am still learning to code and have little to no knowledge of ssh, I think it would make a good exercise to manually remove his account.
– Codering
Dec 11 at 23:44




I don`t want to assume that the openssh-server is in fact the way he gained access to my laptop. I would like to verify it. Also as I am still learning to code and have little to no knowledge of ssh, I think it would make a good exercise to manually remove his account.
– Codering
Dec 11 at 23:44




3




3




Another option would be to ask your friend what he did to your laptop. Our knowledge is naturally limited.
– WinEunuuchs2Unix
Dec 12 at 2:15




Another option would be to ask your friend what he did to your laptop. Our knowledge is naturally limited.
– WinEunuuchs2Unix
Dec 12 at 2:15










1 Answer
1






active

oldest

votes


















1














With dpkg -s openssh-server | grep Status returning installed you have confirmed that someone installed an SSH server on your machine, as this package is not installed by default in any of the current Ubuntu releases (see their .manifest files). If you don’t need remote access to your machine and want to make sure nobody else is using ssh to get access either, simply remove this package with



sudo apt remove openssh-server


and either reboot or stop the sshd service with



systemctl stop sshd


and kill any connection that may still be active with:



killall sshd


Manually removing an SSH user is more complicated and requires much more information than you gave us, but these questions might be helpful:




  • How to log off an user from SSH?

  • What is a user-friendly way to log off other users?

  • How to delete useless ssh key on my server(Ubuntu server 16.04) and generate new one






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%2f1100156%2fhow-do-i-remove-another-computer-which-has-remote-access-to-my-laptop%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









    1














    With dpkg -s openssh-server | grep Status returning installed you have confirmed that someone installed an SSH server on your machine, as this package is not installed by default in any of the current Ubuntu releases (see their .manifest files). If you don’t need remote access to your machine and want to make sure nobody else is using ssh to get access either, simply remove this package with



    sudo apt remove openssh-server


    and either reboot or stop the sshd service with



    systemctl stop sshd


    and kill any connection that may still be active with:



    killall sshd


    Manually removing an SSH user is more complicated and requires much more information than you gave us, but these questions might be helpful:




    • How to log off an user from SSH?

    • What is a user-friendly way to log off other users?

    • How to delete useless ssh key on my server(Ubuntu server 16.04) and generate new one






    share|improve this answer




























      1














      With dpkg -s openssh-server | grep Status returning installed you have confirmed that someone installed an SSH server on your machine, as this package is not installed by default in any of the current Ubuntu releases (see their .manifest files). If you don’t need remote access to your machine and want to make sure nobody else is using ssh to get access either, simply remove this package with



      sudo apt remove openssh-server


      and either reboot or stop the sshd service with



      systemctl stop sshd


      and kill any connection that may still be active with:



      killall sshd


      Manually removing an SSH user is more complicated and requires much more information than you gave us, but these questions might be helpful:




      • How to log off an user from SSH?

      • What is a user-friendly way to log off other users?

      • How to delete useless ssh key on my server(Ubuntu server 16.04) and generate new one






      share|improve this answer


























        1












        1








        1






        With dpkg -s openssh-server | grep Status returning installed you have confirmed that someone installed an SSH server on your machine, as this package is not installed by default in any of the current Ubuntu releases (see their .manifest files). If you don’t need remote access to your machine and want to make sure nobody else is using ssh to get access either, simply remove this package with



        sudo apt remove openssh-server


        and either reboot or stop the sshd service with



        systemctl stop sshd


        and kill any connection that may still be active with:



        killall sshd


        Manually removing an SSH user is more complicated and requires much more information than you gave us, but these questions might be helpful:




        • How to log off an user from SSH?

        • What is a user-friendly way to log off other users?

        • How to delete useless ssh key on my server(Ubuntu server 16.04) and generate new one






        share|improve this answer














        With dpkg -s openssh-server | grep Status returning installed you have confirmed that someone installed an SSH server on your machine, as this package is not installed by default in any of the current Ubuntu releases (see their .manifest files). If you don’t need remote access to your machine and want to make sure nobody else is using ssh to get access either, simply remove this package with



        sudo apt remove openssh-server


        and either reboot or stop the sshd service with



        systemctl stop sshd


        and kill any connection that may still be active with:



        killall sshd


        Manually removing an SSH user is more complicated and requires much more information than you gave us, but these questions might be helpful:




        • How to log off an user from SSH?

        • What is a user-friendly way to log off other users?

        • How to delete useless ssh key on my server(Ubuntu server 16.04) and generate new one







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 12 at 12:56

























        answered Dec 12 at 7:35









        dessert

        22k56197




        22k56197






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f1100156%2fhow-do-i-remove-another-computer-which-has-remote-access-to-my-laptop%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

            Ellipse (mathématiques)

            Quarter-circle Tiles

            Mont Emei