Enable SSH on Raspberry Pi without Monitor

Raspbian by default has disabled SSH server. To enable it without Keyboard and Monitor, follow any of the below mentioned methods.

Preliminary requirements:
1. You should have Raspbian image written on SD Card
2. You should have a machine with SD Card reader and OS which supports reading ext filesystem

Method 1
1. Mount SD card to computer, open the partition with filesystem (not the boot).

2. Edit file on the following path

/etc/rc.local

3. Add below line above exit 0

systemctl start ssh #this will run on each startup

or

systemctl enable ssh #this will enable ssh on each startup.

4. Remove SD Card from computer, insert in RPi and boot up

5. Find IP address of the RPi from your routers DHCP lease table

6. Connect SSH to access RPi. Default credentials are

username: pi
password: raspberry

Method 2
1. Mount SD card to computer, open the boot partition.

2. Create file ssh (without extension) onto the boot partition of the SD card

3. Remove SD Card from computer, insert in RPi and boot up

4. Find IP address of the RPi from your routers DHCP lease table

5. Connect SSH to access RPi. Default credentials are

username: pi
password: raspberry

Leave a Reply

Your email address will not be published.