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
kenorb
  • 10,944

1 Answers1

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:

dessert
  • 40,956