Control your computer by SSH (terminal) using your cell phone

Last day November 20 was my birthday (23, I turned 23), my father gave me the Nokia 5800 that he used because he finally realized that I would give it a better use 

I eat every nerd (or lover of technological gadgets) ... I started looking for applications to make the smartphone even smarter than it was supposed to be.

Note: For this tutorial I will be using my Nokia 5800, however if you have any device with iOS, Android or Symbian it will work just as well 

One thing I always wanted to do was to be able to access my laptop's terminal from a mobile device, meaning I could type commands on my cell phone and have them run on the laptop. This would allow me to not have to get up from the couch, and to be able to control my laptop (and my home computer) without having to leave my comfort zone 

To achieve this I need to install ssh on my laptop, as well as an SSH client on the cell phone. To install ssh on the laptop, just install the meta-package ssh ... or install openssh-server , installing either of these two packages will work.

Then we only need to install an SSH client on the cell phone, I decided to Putty. Through a Google search you can get Putty for your computer system, as I said above ... iOS, Symbian or Android:

To install it, we copy it (via USB or bluetooth) to our cell phone, do a double touch (equivalent to double click hehe) and the cell phone will know how to install the application.

Once installed on our smartphone we look for it through the menu and in applications:

As you can see in the 2nd screenshot, a list of the profiles is shown (Profiles) that we have declared, as well as options to create a new profile (New), edit an existing one (Edit) or delete some (Delete).

We are going to create a new profile and we will be shown the following options that we can see in the 3rd screenshot of the previous ones 

Then it only remains to establish the data where it corresponds, I have it in the following way:

En General:

  • En profile name we put what we want, this will be the name of the profile.
  • En Host We specify the IP address of the computer to which we want to connect (in my case the Wi-Fi IP of my laptop).
  • En Username we put the username with which we will access, mine is kzkggaara as you can see.
  • En Access Point we will select the name of our Wifi.

In the following "tabs" we can define the SSH port (in case we have changed it on our laptop). As well as configuration of the appearance and this type of thing, I leave screenshots of how I have everything on me in case it is useful to someone:

Once we have configured our profile as we wish, all that remains is to double-touch the profile and voila, it will begin to connect, asking us the password of the user that we specified before:

Once we put the password ... that's it, we are inside the computer (in this example my laptop):

For example, here I ran htop (terminal application that shows active processes, consumed RAM, CPU ... that is, something like a System Monitor but in terminal). I wrote this on the smartphone but, as you can see, it shows me the data from the laptop, well… no kidding, the 5800 has 2CPU and 2GB of RAM LOL !!

To finish convincing you ... I will list the folder where it is located (/ home / kzkggaara /) and you will see its content, although now that I think about it… I could have done a uname -a or something like that, … but now the idea comes to my mind  … we will have to settle for a ls
Hehe

We can still use our Linux applications, here I show you that I can open nano (text editor in terminal) without any problem:

Well, nothing, as you can see it is simply an SSH, so the limit is almost our imagination 

By the way, if you are wondering what those Tab, Ctrl, Up… Enter… Send… buttons are, they are simply the options that will allow us to enter the commands. In other words, we write «ls» and then press (with the touch or touch) on the Enter button and this is how the command is executed.

What I just explained is quite intuitive and simple, but it is better to be as clear as possible and thus avoid someone not understanding something 


Add as preferred source in Google