SSH over USB - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139) +---- Thread: SSH over USB (/showthread.php?tid=12408) Pages:
1
2
|
SSH over USB - 3x5co - 12-04-2020 I'm running Ubuntu on my desktops, and Mobian on the phone. I can SSH over LAN pretty easily, but I would like to connect directly over USB, if possible. As a bonus, it could be nice if I could connect to my Mobian phone over LAN, but through the USB. I just figure it would faster than over wi-fi, which is a little spotty in my house. RE: SSH over USB - dukla2000 - 12-04-2020 Works out of the box now, just plug in that USB cable. Ditto via ethernet, you may need to share the IPv4 connection that gets created for eth0 in this case though. RE: SSH over USB - 3x5co - 12-13-2020 Thanks. MTP seems to be working great, just from connecting the USB. But if I want to log into my Mobian shell, is there a way to do this over USB? //Edit I get it. It proritizes the cable when you ssh, over wifi LAN. It looks like it also does a reverse tether, where the phone can get an internet connection through the host. Cool! RE: SSH over USB - 3x5co - 01-02-2021 Shoot, this was working, and now it isn't. It seems that sometimes I upgrade my phone, and functions become unavailable. Anyway, how to I manually reinstall and re-enable this functionality? I'd like to get both SSH and IPv4 working over USB. RE: SSH over USB - 3x5co - 01-02-2021 OK I think I have SSH working after all. I just needed to get the IP of the phone when it's over USB. However, my IPv4 sharing isn't working. I see a solution on the wiki, but it's complicated and involves manual modification to both the phone and my computer. Knowing it worked out of the box before, I'm hoping someone can help me with this piece. RE: SSH over USB - dukla2000 - 01-03-2021 (01-02-2021, 09:32 PM)3x5co Wrote: OK I think I have SSH working after all. I just needed to get the IP of the phone when it's over USB. However, my IPv4 sharing isn't working. I see a solution on the wiki, but it's complicated and involves manual modification to both the phone and my computer. Knowing it worked out of the box before, I'm hoping someone can help me with this piece. Unless I am very much mistaken the wiki is superseded. On the assumption you want to share your PinePhone mobile internet connection with the device at the other end of the USB cable then it is (now) much easier. On Mobian (I am running Arch for today - can swap back if this goes wrong) plug USB-C into your PP and the other end into your Ubuntu desktop. I think (not 100% certain) it should just work, if not open a terminal session both on the PP and the desktop. Code: ip a If you have something promising on the desktop end then you may need to reboot the desktop after disconnecting all other internet options - a while back when I was playing it seemed my desktop would get a fixation about the ethernet connection and not bother trying the USB. (I am in no doubt there is an elegant way somewhere to sort this with priorities but ...) If you have nothing on the desktop but the PP looks promising then try Code: nmtui {As above I am writing this without Mobian in front of me - if things seem a little garble that is my excuse :-) If you still have problems yell and I can fir Mobian!} RE: SSH over USB - 3x5co - 10-27-2021 Thanks for the help, but this has stopped working again after flashing a nightly. Now, when I run `ip a` I see: ``` usb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000 link/ether xxx brd xxx ``` But no inet or inet 6. I've tweaked the settings in the network manager but I can't get my computer to recognize the phone because it doesn't appear to have an ip address. when I look in the connection manager, it shows a usb connection and the ip listed is the default one (10.66.0.1). RE: SSH over USB - 3x5co - 10-28-2021 I also noticed that when I go to network, under 'Wired', it says 'Cable unplugged' even though the cable is plugged in. I'm using the cable that came with the phone, and I tried a couple alternate cables. The battery is charging, so the phone does recognized the cable in that way. RE: SSH over USB - 3x5co - 12-02-2021 You know, when this stopped working was right around the time I had to install Docker for a project. I noticed I now have this entry, among others: Code: 3: lxcbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000 This appears to be related to Docker, and it's using 10.0.3.1. I know there's something on the wiki that says you may run into problems if your LAN's router is on the same 10.x.x.x subnet that Mobian is trying to use. Is it possible that Docker is creating a network overlap? RE: SSH over USB - 3x5co - 12-03-2021 Nevermind, I tried connecting to another computer and I have the same problem: the connection says 'cable disconnected' in settings, and the usb connection only works to charge the phone. |