Infra Insert 06: Difference between revisions

This page was last edited on 1 February 2024, at 14:44.
(Created page with "<!------------------------> <!-- do not remove this --> <div id="infra##" class="infra-insert"> <!------------------------> '''SSH requirements for accessing a Raspberry pi over local network:''' being on the same internet router as the pi Note: If you are moving around, get a dongle, tether form your phone data package or "share wifi" form your laptop. '''IP address of the pi:''' one way to do this is, through is this command line on the pi: '''$ hostname -I''' or...")
 
No edit summary
Line 3: Line 3:
<div id="infra##" class="infra-insert">
<div id="infra##" class="infra-insert">
<!------------------------>
<!------------------------>
'''SSH requirements for accessing a Raspberry pi over local network:'''
being on the same internet router as the pi
Note: If you are moving around, get a dongle, tether form your phone data package or "share wifi" form your laptop.
'''IP address of the pi:'''
one way to do this is, through is this command line on the pi:
'''$ hostname -I'''
or, scan the network from the client (laptop) using:
'''$ nmap'''
nmap requires that you know the IP address of the network your on. You can easily find this from your network settings on your laptop. The first three numbers of your network IP will be the same on the pi, but you have to tell the scanner to traverse all possible options for the last number.
Assuming that your network IP is 192.168.0.0, This is the syntax to do that:
'''$ nmap 192.168.0.0/24'''
You can also use a network scanning app (on a phone) and it should come up.
Pro tip: don't do it in a building with over 200 devices like I did!!!
Pro tip: don't do it in a building with over 200 devices like I did!!!
'''Connecting from a client:'''
now that we have the IP address, any computer can request to SSH into the Pi through these commands:
'''& ssh pi@<pi ip>'''
eg.
'''$ ssh pi@100.10.1.90'''
you are now "logging into" the pi, so the password requested here is would be a default one according to the OS you have installed.
Enter the password
You should now see your terminal username change from your laptop's local user to something like:
'''$ pi@raspberry~$.'''
To exit out of the pi type:
'''$ exit'''
Hit enter.
''Fragment from the Servpub docs [see page 2]''
<!------------------------>
<!------------------------>
<!-- do not remove this -->
<!-- do not remove this -->

Revision as of 14:44, 1 February 2024

Pro tip: don't do it in a building with over 200 devices like I did!!!