• Linux
  • FreeBSD
  • Networking
  • Python
  • AWS
  • WebDev
  • About Us
Tech Tips and Tutorials
Menu
  • Linux
  • FreeBSD
  • Networking
  • Python
  • AWS
  • WebDev
  • About Us
Home  /  Linux  /  How to enable SSH and wifi on first boot in Raspberry Pi raspbian OS

How to enable SSH and wifi on first boot in Raspberry Pi raspbian OS

Written by
Linux Leave a Comment

So once you have the SD card ready with Raspbian OS , the usual way is to connect a HDMI monitor , keyboard etc directly to the pi and once boot up you can further configure . Here we show how to enable SSH and configure a wifi on the first boot , so that we can remote connect to it without having a monitor directly connected .

Once you have the image flashed , go to the SD card from the file explorer and go to the boot folder . Then create an empty text file called ssh but make sure no extension after SSH .

As of April 2022, RaspberryPiOS removed the default User “pi” from their operating systems and you get “access denied” because there is no User named “pi” exists . So you need to create one more .txt file

userconf.txt

Then for user ‘pi’ and password ‘raspberry’ add the following in the file and save

pi:$6$/4.VdYgDm7RJ0qM1$FwXCeQgDKkqrOU3RIRuDSKpauAbBvP11msq9X58c8Que2l1Dwq3vdJMgiZlQSbEXGaY5esVHGBNbCxKLVNqZW1

Then for Wifi , create a file called /etc/wpa_supplicant/wpa_supplicant.conf and add the below entries: where SSID is the name of your network, your password and then the country is your country code.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=IE
network={
	ssid="SSID"
	psk="password"
}

You can then see the IP leased to Pi from your wireless router . If you don’t have access to the router, you can use any network scanning tool to find this IP . The below is my pi IP which I can see from my router.

To see the arp with IP from Linux/Mac

arp -na | grep -i b8:27:eb

The MAC address will change depends upon the model of your raspberry pi , some common Rpi MAC addresses are below :

28:CD:C1
3A:35:41
B8:27:EB
D8:3A:DD
DC:A6:32
E4:5F:01

The default SSH login credentials for older OS’s are below and if its for the latest Operating systems please follow the above steps in creating a new user and password.

username: pi

password: raspbian

You can then straight SSH to this IP :

Share On
Share on Facebook
Share on Twitter
Share on Google+
Share on Whatsapp

 Previous Article Error: /bin/sh: Syntax error: unexpected in Python3
Next Article   How to convert .pem to .ppk for SSH

Related Posts

  • Linux Shell Scripts for System Administrators

  • SOCKS PROXY

  • How to grep IP addresses from log files in Linux

Leave a Reply

Cancel reply

  • Popular Posts
  • Recent Posts
  • Linux Shell Scripts for System Administrators
  • Cacti 1.1.38 ERROR Opening .rrd No Such file or directory
  • Apache configuration for Cacti
  • How to create RAM disk in Ubuntu 18.04
  • Linux Shell Scripts for System Administrators
  • SOCKS PROXY
  • How to install XAMPP and access phpMyAdmin in MAC OS
  • How to increase the root volume in a Linux ec2 instance

Linux

  • Linux Shell Scripts for System Administrators
  • SOCKS PROXY
  • How to grep IP addresses from log files in Linux
  • How to empty or delete a large file in Linux

Categories

  • AWS (5)
  • FreeBSD (12)
  • Linux (29)
  • Networking (3)
  • Python (5)
  • Uncategorized (4)
  • WebDev (1)
  • Connect on Facebook
  • Connect on YouTube
© Copyright 2020.TechieNix. All Rights Reserved.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.

Non-necessary

Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.