Hi to everyone, In this post I will be talking about SSH, and how to do it The Right Way...
Some other contestants also wrote about the same but I found some problems in all of them, so I am going to tell you my secret way of doing it...
You might ask whats special in your way...
1 ). You don't need to set RPi's IP address.
2 ). You don't even need to Know the IP address !!
3 ). This method even works on the Raspbian installed via NOOBS and Stand alone Raspbian also.
4 ). It works Through WiFi and also Ethernet.
5 ). You can still use Internet on your RPi.
6 ). RPi can be in another room.
OK Lets start...
You need to get these 2 software on you PC...
1 ). PuTTY ( PuTTY is an SSH and telnet client, for the Windows platform. ) You can download it from HERE.
2 ). Xming ( Xming is an implementation of the X Window System for Microsoft Windows operating systems. )It will enable us to use the GUI
or Graphical User Interface of Raspbian.. You can download it from HERE.
Or you can do a Google search for both of them..
There are some more settings in Raspbian that we need to change...
1 ). Make sure that your OS is up to date, if not first update the OS..
2 ). Open LXTerminal, and type " sudo raspi-config " and press enter to run command..
3 ). This will open Raspberry pi software configuration tool..
4 ). Expand File system, In NOOBS you don't need to do this its done as default..
5 ). Now go in "Advance Options", and Enable SSH..
6 ). Now Reboot. You can do this by typing " sudo reboot " in LXTerminal, and running the command..
7 ). After System reboots, Type " sudo apt-get install avahi-daemon " in LXTerminal, and run the command.. This will install a plugin that will allow you to connect to a Raspberry Pi in your Local Network without the need of knowing its IP address...
8 ). After installing it will ask you " Do You Want To Continue [Y/N] " press " Y " and then run the command...
9 ). Now Reboot again..
OK we have done all the settings that we need to do at the Raspberry Pi, Now it can Run only with Power and WiFi dongle / Ethernet cable, however you can still other things to it for example, monitor, keyboard etc. Its is optional..
Now we just need to access it with our PC, Here is what to do...
1 ). Open / Start Xming. ( NOTE: you won't see any window opening, as we have not started ssh yet, Xming will only so up in your notifications area, in the bottom right hand corner. )
2 ). Open / Start PuTTY, Window will appear..
3 ). Type " raspberrypi " in Host Name (or IP address)..
4 ). Go to " X11 " option and Enable X11 forwarding, this will enable Xming to display RPi desktop, and Let us use GUI...
5 ). Then Go Back To " Sessions " And click " Open "...
6 ). If are doing SSH for the first time, You should get a certificate trust warning message which you should " accept " it.
7 ). Now you are connected to your Raspberry Pi through SSH, a window will open named " raspberrypi.local.lan - PuTTY ", it will ask for Login type " pi " then it will ask your password, enter whatever your password is, after that Press Enter..
8 ). Once you see "pi@raspberrypi ~ $" type " startlxde " and press enter to run the command..
9 ). after about 5-6 seconds you will see your Raspberry Pi's Desktop, you can end the session by going to the PuTTY window " raspberrypi.local.lan - PuTTY " and pressing " Ctrl+c ", and you can start it again by typing " startlxde " and running the command...
10 ). You can also close the session by exiting PuTTY..
So Here it is I told you every thing, now do whatever you want to do via SSH... Rest is up to you now...
If you have any questions please ask in the comments below and I will make sure to answer them....
Top Comments