I am using the following link :https://thepi.io/how-to-use-your-raspberry-pi-as-a-wireless-access-point/ to set up my raspberry pi to act like a wireless router. So far I have installed raspbian on a sd card. I don't have access to an external monitor or a keyboard. I have access to a ubuntu laptop. I want to use the commands on the tutorial to set up the pi but how do I connect to pi in the first place. This is the first time I am doing this and I have no idea. I have an ethernet cable and wifi access that is again provided by a raspberry pi that was already set up by somebody else. How can I connect to the raspberry pi in the terminal to execute the commands? Thanks!
1 Answer
ENABLE SSH
SSH is what you're looking for. If you connect your RPI ethernet port to your router you can use arp -a
(linux, mac) to see all IP addresses on your network. You will likely see your pi as pi (192.168.1.15)
or something along those lines.
Once you find the pi IP you can connect to the raspberry pi using the ssh
command. When connecting to the raspberry pi a prompt will ask you for a password (it is usually raspberry
on raspbian OS).
ssh [email protected]
If this doesn't work, SSH might not be enabled. You can take your SD card and put create an empty file with the name SSH at the boot directory.
-
When I execute
apr -a
on my Raspberry Pi I get:-bash: apr: command not found
. Did you meanip a
? But this only shows the IP addresses of the local interfaces not all IP addresses on the network.– IngoCommented Feb 12, 2019 at 21:49 -
-
Ah.. you mean asking the local arp cache. But this will not give you all IP addresses on your network. It will only show addresses that where addressed the last 5 minutes. If you haven't addressed the RasPi the last 5 minutes (e.g. with ping) it isn't shown in the arp cache. Using
nmap
seems to be better.– IngoCommented Feb 13, 2019 at 19:34
ssh [email protected]
orssh pi@<ip address of your pi>
.