It is possible to remotely connect pi with your PC. Things to be needed are raspberry pi board, a PC and a LAN connection.
Accessing command line of raspberry pi through SSH .SSH stands for secure shell. It is a way one can access the command line. By logging in the command line of another device we can install something on that remote computer. In our case, that remote computer is raspberry pi. This is important, suppose we want to use a pi without monitor, keyboard, mouse but still need access to it then we can do it by SSH, For example, you are using your pi in a robot that it will be easy for us to connect it via SSH and control it.
I am assuming now that you have connected both your pi and PC via LAN cable. Now follow the following easy steps
1. Open the browser on your PC and download an SSH client for your PC such as putty. Go through this link and download .exe file
2. After downloading just click on it and you will see the following window.
3. In the hostname field enter the IP address of your pi. (to know the IP address of the PI enter the command ho stname -I in pi terminal )
4. Enter port 22 and click open. You will be asked to log in as pi
And then it will ask for password, enter raspberr y
Now you have access to the command line of your pi. Control your pi from here
Getting console on your PC is good to see but it will be more fun if you can access the desktop of your raspberry pi. Now we are going to get pi desktop in a windows pc..
open your Windows PC, open putty and then get to command line of your pi (follow the above-mentioned steps).
Now enter the command sudo apt-get install xrdp and enter y
xrdp is a remote desktop protocol, your console will now look s as follow
It will ask you to enter username and password.put pi in username and raspberry in password and the click ok
Now you will be having your Pi desktop in your windows machine.
Getting console on your PC is good to see but it will be more fun if you can access the desktop of your raspberry pi. Now we are going to get pi desktop in a windows pc..
open your Windows PC, open putty and then get to command line of your pi (follow the above-mentioned steps).
Now enter the command sudo apt-get install xrdp and enter y
xrdp is a remote desktop protocol, your console will now look s as follow
Now hit window tab and search for the remote desktop application and click on that. You should see following screen in your PC now. Enter the IP of you pi at the computer field and click connect.
It will ask you to enter username and password.put pi in username and raspberry in password and the click ok
Now you will be having your Pi desktop in your windows machine.
No comments:
Post a Comment