My experiences with PuTTY on my Nokia E63 and my openSUSE 11.2 desktop computer!
Today I discovered a new amazing thing! I was able to connect to my desktop computer, over WiFi, from my mobile!
A desktop computer (if you're running a Linux distro, then better!) (and if you're running openSUSE 11.2:KDE even better!) (that's what I have!)
A Nokia (Symbian series 60) mobile phone (a list of compatible phones is here)
A wireless modem
Some basic knowledge on how to use Linux's KDE environment, nothing much!
Okay, so let's get started
You'll need to first install openSUSE 11.2 on your computer! There's an amazing newbie guide to openSUSE 11.2 at http://opensuse-guide.org/. Go and read it; you'll learn everything about openSUSE (including how to install and stuff!)
Be sure you keep your wireless modem turned on and connected to your computer. So that openSUSE can automatically configure everything for you!
So, now that you've successfully installed openSUSE, sit back, relax and enjoy the beautiful KDE 4.3 desktop! Here's my desktop:
Simply visit http://s2putty.sourceforge.net/ and go to the Download section. Here, download the appropriate installation file for your phone. You now need to transfer the .SIS installation file to your phone:
Hey, wait a minute, do you seriously need step-by-step instructions for transferring files?? I mean, come on, you can do this bit on your own!
After installing PuTTY, you should see the PuTTY icon in your Installations folder.
Now, come back to your computer. We now need to verify whether the SSH daemon is up and running.
Click the green SUSE lizard logo on your Plasma panel.
Roll your mouse over Computer.
If prompted for the root password, enter it and say OK.
The YaST control panel shows up.
In the System Services window, scroll down until you see sshd. That's the SSH daemon. Select it and click on the Enable button below and you should get a pop-up window saying the the return value was 0 (success.) That's all. Now dismiss that pop-up window and say OK to the System Services window.
Come back to the YaST control panel window.We need to add an exception to your computer's firewall so that it allows SSH connections. Here's how you do it:
WARNING: What you are about to do is open the SSH port (22) on your computer. Anybody can connect to your computer using SSH, if this port is not protected by your firewall.
I highly recommend that you remove your telephone line from your modem now, so that you are safely disconnected from the Internet.
Under the Firewall Configuration window, in the left-side panel, click on Allowed Services.
Now click on the Add button at the right-side. Notice that Secure Shell Server gets added to the list below.
Click on Next button at the bottom-right-side of the window.
You will now see a summary of the settings that are going to change. Click Finish and your openSUSE will perform the firewall setting changes.
Congratulations, you can now connect to your computer via SSH.
Just one last thing, you'll need to know your desktop computer's IP address. So open Terminal, it should be under green lizard icon >> Favorites section.
In here, type the following command:
Here's what I see...
Let's get back to PuTTY on your Symbian mobile phone
Here are the step-by-step instructions to connect to your openSUSE computer from your mobile phone:
Remember the IP address that you had noted down earlier? Type in the same here.
Now, it's gonna ask you about which Access Point to use. Be sure your modem access point is defined in your phone. If not, the select Search for WLAN, select your modem's wireless network name (SSN) and optionally, enter the WEP/WPA2 key. By doing this, you'll be defining a new Access Point.
I use root so that I get full access rights. This is not a recommended approach.
Congratulations, you've successfully connected to your openSUSE computer via SSH
You can now use all the regular shell commands! Your mobile phone acts like a dumb terminal. If you wanna send special keystrokes, like ESC etc., that click Send and a list of keystrokes will appear.
I haven't figured out a way to transfer files between my computer and my mobile phone yet. There's a Java application called MobyExplorer and it has FTP support. Once I find out more about it, I'll blog it here!
Thank you for reading my blog and happy SSH-ing!
Post a comment if you have any doubts. I'll be happy to help you out!
Here are some more screen-shots of me using PuTTY!
Here's a the popular ls command in action!
Here's where I create a file called hello.txt using the cat command and the shell's here document, <, operator. I later display the contents of hello.txt using cat.
And this is the best part! You can actually use the vi editor and do programming!
I'm typing the program using my QWERTY keypad! Notice that I use the Send option to send special characters, in this case, the Tab character.
Time to save and quit!
As you can see, my C program, hello.c has been created!
Let me just compile that program using g++.
There you have it, g++ has conveniently create the executable file, a.out for me!
Let's execute it, shall we?
And here's the output of our program!
That's all from me this time! Stay tuned for more!