Enabling SSH in raspberry pi in first boot...
There are many ways to enable ssh in raspbian os. But there are some situations for som people where there is not extra monitor or any display and no external keyboard and mouse. What will you do with a laptop and pi and a pi power supply.
There is a way to enable ssh in raspberry pi before even the first boot.
By default the raspberry pi always checks for an extension less file named ssh while booting if ssh is disabled to enable ssh. so we can paste an empty file named ssh in the boot section of the memory card and enable ssh.
NOW LETS LOOK HOW TO DO IT:
At first we need to create an ssh file which cannot be created in a windows pc but with the help of vs code we can create a no extension file.
Thats all now you can access the pi when connected to your network with a lan connection. You can use any ssh software (i recomend using putty) with the host name as raspberrypi. Or you can use the ping command and find the local ip of the pi and login through ssh.
Next look at how to enable remote desktop in a raspberry pi here
DO FOLLOW FOR MORE TECH IDEAS...
Comments
Post a Comment