Infra Insert 06: Difference between revisions

This page was last edited on 1 February 2024, at 22:24.
(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
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<!------------------------>
<!------------------------>
<!-- do not remove this -->
<!-- do not remove this -->
<div id="infra##" class="infra-insert">
<div id="Infra Insert 06" 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 -->

Latest revision as of 22:24, 1 February 2024

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