CabrilloRoboticsClub / cabrillo_rov_2023

Cabrillo College Robotics Club repo for the MATE ROV 2023 competition
GNU Affero General Public License v3.0
10 stars 5 forks source link

Connection does not register as seahawk.local #232

Open steph1111 opened 7 months ago

steph1111 commented 7 months ago

What happened

We were unable to connect to the Raspberry Pi using the following command for over 5 minutes.

❯ ssh -A steph@seahawk.local
ssh: Could not resolve hostname seahawk.local: Name or service not known

It was later determined that the pi was up, however the connection did not register as seahawk.local

Conditions

Condition At time of issue
Branch main
Laptop Steph's Thinkpad
Terminal or VS Code Terminal
Controller Actually decent
What was running n/a

Log

❯ ssh -A steph@seahawk.local
ssh: Could not resolve hostname seahawk.local: Name or service not known
❯ 
❯ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp3s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether f4:a8:0d:f8:97:87 brd ff:ff:ff:ff:ff:ff
    inet 172.20.0.8/16 brd 172.20.255.255 scope global dynamic noprefixroute enp3s0f0
       valid_lft 11814sec preferred_lft 11814sec
    inet6 2607:f380:80f:f830:3690:c4f2:ba37:36a3/64 scope global temporary dynamic 
       valid_lft 602214sec preferred_lft 83644sec
    inet6 2607:f380:80f:f830:2b4d:2bca:34b1:8f80/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 2591984sec preferred_lft 604784sec
    inet6 fe80::39a3:a291:617f:982e/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 20:2b:20:2c:f2:61 brd ff:ff:ff:ff:ff:ff
    inet 172.28.14.176/20 brd 172.28.15.255 scope global dynamic noprefixroute wlp6s0
       valid_lft 1617sec preferred_lft 1617sec
    inet6 fe80::a326:5ab9:efd1:7131/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 02:42:63:e6:d9:99 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
❯ nmap 172.20.0.0/24
Starting Nmap 7.80 ( https://nmap.org ) at 2024-05-03 11:37 PDT
Nmap scan report for _gateway (172.20.0.1)
Host is up (0.00076s latency).
Not shown: 998 closed ports
PORT     STATE SERVICE
1720/tcp open  h323q931
5060/tcp open  sip

Nmap scan report for 172.20.0.4
Host is up (0.00055s latency).
Not shown: 999 closed ports
PORT   STATE SERVICE
22/tcp open  ssh

Nmap scan report for steph-ThinkPad-L14-Gen-3 (172.20.0.8)
Host is up (0.00045s latency).
All 1000 scanned ports on steph-ThinkPad-L14-Gen-3 (172.20.0.8) are closed

Nmap scan report for 172.20.0.14
Host is up (0.00054s latency).
Not shown: 999 closed ports
PORT   STATE SERVICE
22/tcp open  ssh

Nmap scan report for 172.20.0.53
Host is up (0.00035s latency).
Not shown: 984 filtered ports
PORT     STATE SERVICE
53/tcp   open  domain
80/tcp   open  http
88/tcp   open  kerberos-sec
135/tcp  open  msrpc
139/tcp  open  netbios-ssn
389/tcp  open  ldap
445/tcp  open  microsoft-ds
464/tcp  open  kpasswd5
593/tcp  open  http-rpc-epmap
636/tcp  open  ldapssl
1688/tcp open  nsjtp-data
2179/tcp open  vmrdp
3268/tcp open  globalcatLDAP
3269/tcp open  globalcatLDAPssl
3389/tcp open  ms-wbt-server
5405/tcp open  pcduo

Nmap done: 256 IP addresses (5 hosts up) scanned in 21.81 seconds
❯ ssh -A steph@172.20.0.14
The authenticity of host '172.20.0.14 (172.20.0.14)' can't be established.
ED25519 key fingerprint is SHA256:IOJmfLt7jUIcktHe/v/qYFgDGFydfw5HMVeGeSsItMw.
This host key is known by the following other names/addresses:
    ~/.ssh/known_hosts:16: [hashed name]
    ~/.ssh/known_hosts:19: [hashed name]
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '172.20.0.14' (ED25519) to the list of known hosts.
Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-1050-raspi aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/pro

  System information as of Fri May  3 18:37:42 UTC 2024

  System load:              0.0
  Usage of /:               12.8% of 58.43GB
  Memory usage:             7%
  Swap usage:               0%
  Temperature:              41.4 C
  Processes:                141
  Users logged in:          0
  IPv4 address for docker0: 172.17.0.1
  IPv4 address for eth0:    172.20.0.14
  IPv6 address for eth0:    2607:f380:80f:f830:da3a:ddff:fe4a:9b83

 * Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
   just raised the bar for easy, resilient and secure K8s cluster deployment.

   https://ubuntu.com/engage/secure-kubernetes-at-the-edge

Expanded Security Maintenance for Applications is not enabled.

0 updates can be applied immediately.

21 additional security updates can be applied with ESM Apps.
Learn more about enabling ESM Apps service at https://ubuntu.com/esm

Last login: Fri May  3 01:20:11 2024 from 172.20.0.8
steph@seahawk:~$