ssh via usb pi zero w

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

ssh via usb pi zero w

Postby MrGreen » Sat Jul 31, 2021 12:47 pm

Have read some guides online that allow ssh into pi zero via usb. Tested on a fresh install and I do not seem to able to ssh in.

Basically added empty ssh file in boot and added module-load [cmdline.txt] and overlay to config.txt

Tried to use ssh alarm@alarm.local and returned no service found.

Is this possible on archarm? ....
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm

Re: ssh via usb pi zero w

Postby graysky » Sat Jul 31, 2021 12:56 pm

What is ssh via usb? I never used a pi zero but for other devices, Arch ARM has sshd running by default. Does your pi zero have a network connection? If so, the interface should be managed by systemd and brought up automatically.
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: ssh via usb pi zero w

Postby MrGreen » Sat Jul 31, 2021 1:00 pm

I followed this guide

https://desertbot.io/blog/ssh-into-pi-zero-over-usb

Pi boots up but I will need to configure wifi so I can ssh [wifi] in to check if it is actually booting correctly.

Then I will update this thread.
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm

Re: ssh via usb pi zero w

Postby graysky » Sat Jul 31, 2021 1:05 pm

That dot file stuff is a debian think I think. You'll have to setup wpa_supplicant on the image if you expect wifi to come up if this device only has wireless. See the arch wiki.
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: ssh via usb pi zero w

Postby MrGreen » Sat Jul 31, 2021 1:16 pm

Will do, thanks for your help
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm

Re: ssh via usb pi zero w

Postby karog » Sat Jul 31, 2021 6:10 pm

karog
 
Posts: 300
Joined: Thu Jan 05, 2012 7:55 pm

Re: ssh via usb pi zero w

Postby MrGreen » Sun Aug 01, 2021 11:57 am

Have set up wifi on Pi Zero without any issues. Cannot get usb Ethernet to connect in anyway.

Ip a simply shows usb0 as down

Tried to add a static ip address and that did not work either [as I think guide linked was more for Windows machines]

My Arch laptop does not see usb device or sees usb ethernet at all.

Certainly pi powers via usb connection rather than its power usb point and runs fine.

Not sure what else to try... quite stumped at this point.
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm

Re: ssh via usb pi zero w

Postby MrGreen » Sun Aug 01, 2021 2:38 pm

Well after some searching the web turns out others are having the same problem. One of the posts I read said it was the usb cable at fault. So thought I would try another cable and viola not only does pi show new network so does arch on my laptop.

My laptop shows....now

$this->bbcode_second_pass_code('', 'enp0s29u1u2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 86:61:ab:72:70:dc brd ff:ff:ff:ff:ff:ff
')

pi shows

$this->bbcode_second_pass_code('', 'usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether f6:be:53:01:ac:fe brd ff:ff:ff:ff:ff:ff
inet 169.254.137.1/16 brd 169.254.255.255 scope global noprefixroute usb0
valid_lft forever preferred_lft forever
inet6 fe80::f4be:53ff:fe01:acfe/64 scope link
valid_lft forever preferred_lft forever
')

Very weird random inet which is not on my local network, cannot ping or ssh in still but I guess getting closer....
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm

Re: ssh via usb pi zero w

Postby karog » Sun Aug 01, 2021 4:36 pm

169.254.0.0/16 is ipv4 link local address.

You get that when no address is assigned another way eg statically or via DHCP.
karog
 
Posts: 300
Joined: Thu Jan 05, 2012 7:55 pm

Re: ssh via usb pi zero w

Postby MrGreen » Mon Aug 02, 2021 4:09 pm

If I run pi@pizero.local on Ubuntu it logs in, on Arch it refuses as service unknown. Tried to add machine to /etc/hosts [Arch] still no luck. Of course Ubuntu network settings are going to be different to Arch, but both use systemd.

Thanks for all your help, was very close to solving this one.
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm

Next

Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 6 guests