So up until this point we have our Raspberry Pi connected to the monitor and have a second mouse and keyboard lying around, which is not very practical isn’t it? This article will show you how simple it is to connect to your Raspberry Pi over ssh and get rid of that redundant keyboard, mouse and free up your second monitor!
- Raspberry Pi and your computer MUST be on the same network.
- your computer must be on
- your Raspberry Pi must be on
- you must have your routers login and password
So the first and most radical step is to disconnect the Raspberry Pi from the monitor you have and disconnect the mouse and keyboard from it, only leave the Ethernet and Power connections. Now your desk will be clutter free again!
Now it’s time to connect to you router and find out what is your Raspberry Pi IP on your local network (this is why your PC and Raspberry Pi must be on the same network).
Most routers default local ip adresses are 192.168.0.1 or 192.168.1.1, so try both of them, just copy the from here to your web browser and go to it.
Mine was http://192.168.1.254/, it was different because I am accessing it over an access point.
You should see something like this, it may be different dependent on your routers model. Mine is Pirelli DRG A125G.
So now you must login to your router, by default most routers logins are admin or administrator, and the password may be no password at all, admin or administrator, if you’ve tried them all and with no luck, try looking on the router it self form the login and password, many ISP’s provide a sticker with login credentials, try googling your router model and it’s default credentials, or try and contact your ISP for them.
So i assume that you’ve logged in to your router, now you need to find a network map where it list all the connected devices to it. In most cases it’s your routers main page, so you don’t have to look for it.
In my case it was the first page after logging in. Now in the “Local Network” window we can see a device named “raspberrypi”, it’s our Raspberry Pi, it’s name liked this by default, so you should find it easily.
In this case, my Rasberry Pi local IP address is 192.168.1.64, your’s most probably will be different then mine, so write it down, we will need it later.
Now after writing down your Raspberry Pis’ local IP address you can close the routers’ web page.
Now you’ll have to download a SSH client if you are using windows.
I highly recommend PuTTY, you can download it from here.
Download it and launch the exe file.
A window like above will appear, and just fill it in with your Raspberry Pi IP address like I did, Port 22 and SSH will be chosen by default. Now just click Open.
your login by default it “pi” and the password is “raspberry”, when you’ll be typing the password in, down be afraid if star(*) symbols won’t appear, it’s a terminal and a security thing. Just type it in and hit enter and BAM! we are in! Now we are connected to our raspberry pi an we can do anything we want.
First of all, I highly suggest we change the users password for a more secure one, because in future tutorials we will be exposing our Pi to the internet!
Just input this command to PuTTY:
Type in you current password which is “raspberry”, and type/retype a new password.
And this is what you’ll get if you’ve done everything correctly:
And this is it. If you have any questions or suggestions, feel free to leave them in the comments or write me an email to firstname.lastname@example.org
In the next article I will explain how to forward you’r ports and create a Apache server and a website for everyone to see.