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 put it to 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.

Final report: For this tutorial I will use my Nokia 5800, however if you have a device with iOS, Android or Symbian it will work just as well 😉

One thing I always wanted to do was be able to access my laptop terminal from a mobile device, that is, to be able to type commands on my cell phone and have them run on the laptop. This would allow me not to have to get up from the sofa, to be able to control my laptop (and the home computer) without having to leave my comfort aside 😉

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 made an uname -a or something like that, ... but now the idea comes to 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 dwarf (text editor in terminal) without any problem: Well nothing, as you can see it is simply an SSH, so the limit has been almost 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.

This that I just explained is quite intuitive and simple but, better to be as clear as possible and thus avoid that someone does not understand something 😉


The content of the article adheres to our principles of editorial ethics. To report an error click here!.

20 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   manuti said

    I did not know it, I use ConnectBot for Android, but it is always good to have alternatives.

    1.    KZKG ^ Gaara said

      When I have an Andy I will think of another APP hehe

      PS: Sorry for the delay in responding, I had personal things to take care of 🙂

    2.    dctons said

      I use JuiceSSH it's pretty good.

  2.   Ivan Barra said

    Very good, personally in android I use «connectbot», it allows profiles, colors, keys, etc.

    greetings.

  3.   liamngls said

    Good thing, I have to do something like that to download through ... gnu distributions without having to walk from one place to another 🙂

  4.   Leper_Ivan said

    Excellent contribution .. It will be good for me to turn off the pc and stuff .. It should also be remembered that we can manage the pc from the mobile via TeamViewer .. 😛

    1.    KZKG ^ Gaara said

      Thanks to you for commenting 😀
      From TeamViewer no idea, I have never used it 😉

      PS: Sorry for the delay in responding, I had personal things to take care of 🙂

  5.   Blaire pascal said

    This is what you were talking about in the previous post hehehe, I'll test it on my laptop. Good contribution.

    1.    KZKG ^ Gaara said

      Yep, this was it 😀
      Thanks for the good contribution 😉

      PS: Sorry for the delay in responding, I had personal things to take care of 🙂

  6.   acevalgar said

    I do not plan to enter the terminal of my laptop from my cell phone N 5800, for now.
    I still thought the post was great and I will book it as a favorite for later. For now tell me: What is the topic of your cell phone / mobile? This is great.

    1.    KZKG ^ Gaara said

      Thank you
      The Skin is ... mmm good I don't know the name, but I uploaded it here so you can download it if you want: http://ftp.desdelinux.net/kzkggaara/android-theme-nokia-5800.sis

      PS: Sorry for the delay in responding, I had personal things to take care of 🙂

  7.   Claudio said

    I can't find Putty for Android ... does this tutorial vary a lot for the apps mentioned in previous comments? In any case, it would be nice if at some point they can make one with the other variants or directly for Android

    1.    Ivan Barra said

      Unfortunately it doesn't exist, but connectbot fulfills almost 100% of putty's characteristics.

      Greetings.

      1.    Claudio said

        On site there is a tutorial to do it from connectbot http://cor.to/Kkbk
        Sorry for leaving the comment and then looking at the FromLinux search engine 🙂

  8.   Let's use Linux said

    Very good!
    I tried another excellent option: Teamviewer.
    I leave the link: http://usemoslinux.blogspot.com/2011/08/alternativas-para-controlar-tu-compu-en.html
    I was a phenomenon.
    Cheers! Paul.

  9.   rotciv oisorbma said

    Good input.
    But if I want to do it the other way around, I mean to see the cel data from the lap how is it done? does anyone know how? I use OpenSSH and ConnecBot on android. I tried but it says that port 22 was rejected. Thank you and good contribution

    1.    KZKG ^ Gaara said

      For this you would have to look for an application that is an SSH Server for the cell phone, if you have an Android there must be something like this 😉

      Port 22 is the SSH port by default, so if you don't install a ssh server on the cell phone, or mode, it won't be open.

      Greetings and thanks for commenting 🙂

  10.   Javier said

    Very useful. I use it to remotely shut down the computer when one of my daughters is lingering about going to bed to sleep.

  11.   otkmanz said

    Excellent post !! It really helped me a lot, I have installed an SSH client on my Android and I love it! It's super useful hahahahaha
    But a question, I've been googling but can't find an answer, how could I do it to remotely connect to my SSH server? With public IP or a host (type No-IP)?
    A greeting!

    1.    otkmanz said

      Okay, ignore my comment, I've already found how! I'm very sorry for the inconvenience.
      A greeting!