PINE64
SSH not working - 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 not working (/showthread.php?tid=14577)



SSH not working - ragreenburg - 08-03-2021

I've enabled ssh and gone into my sharing folder and enabled that as well and running
Code:
ssh mobian.local
lets me ssh into my phone from my phone (pretty useless) but trying through my terminal and through Putty I haven't been able to connect to the phone through SSH. It seems to time out every time. Anyone else having this problem?


RE: SSH not working - kqlnut - 08-03-2021

(08-03-2021, 11:01 AM)ragreenburg Wrote: I've enabled ssh and gone into my sharing folder and enabled that as well and running
Code:
ssh mobian.local
lets me ssh into my phone from my phone (pretty useless) but trying through my terminal and through Putty I haven't been able to connect to the phone through SSH. It seems to time out every time. Anyone else having this problem?

I'm not sure if ssh works without supplying a user name (mobian in your case probably). Try "ssh mobian@[IP address]", that should work. You can find your phone's IP address by entering "ip a" in your phone's terminal.


RE: SSH not working - ragreenburg - 08-04-2021

(08-03-2021, 04:33 PM)kqlnut Wrote:
(08-03-2021, 11:01 AM)ragreenburg Wrote: I've enabled ssh and gone into my sharing folder and enabled that as well and running
Code:
ssh mobian.local
lets me ssh into my phone from my phone (pretty useless) but trying through my terminal and through Putty I haven't been able to connect to the phone through SSH. It seems to time out every time. Anyone else having this problem?

I'm not sure if ssh works without supplying a user name (mobian in your case probably). Try "ssh mobian@[IP address]", that should work. You can find your phone's IP address by entering "ip a" in your phone's terminal.
That's what I've been doing through my terminal and isn't working. In Putty I get a timeout error and in my terminal it just sits there and does nothing for minutes at a time before I cancel the command. Also, for anyone seeing this in the future, it is much easier to see your IP with
Code:
hostname -I



RE: SSH not working - Zebulon Walton - 08-05-2021

Do you have a firewall configured that may be blocking it? I use ssh and sshfs to get into my Pinephone all the time and have had no problems. My firewall is configured to only allow incoming ssh connections from reserved LAN addresses (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) so I can ssh in from just about any LAN I'm connected to.


RE: SSH not working - 8bit - 08-05-2021

Does your wifi have AP isolation enabled? It would block connections between wifi devices.


RE: SSH not working - ragreenburg - 08-06-2021

(08-05-2021, 11:15 AM)Zebulon Walton Wrote: Do you have a firewall configured that may be blocking it? I use ssh and sshfs to get into my Pinephone all the time and have had no problems. My firewall is configured to only allow incoming ssh connections from reserved LAN addresses (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) so I can ssh in from just about any LAN I'm connected to.

I don't know, I am using the internet at work for this. Though I do recall being able to do it in late 2020 before the PP was my daily driver but it isn't working now.

(08-05-2021, 05:18 PM)8bit Wrote: Does your wifi have AP isolation enabled? It would block connections between wifi devices.
No clue, but I put it on mobile data and it still hasn't been working.


RE: SSH not working - Zebulon Walton - 08-06-2021

Mobile data is even less likely to work, at least if using IPV4 addresses, since typically carrier-grade NAT is used on those connections. It would be like trying to connect to a home computer via IPV4 where you'd need port forwarding set up in the router. However you're not able to do that with carrier-grade NAT since it's under your service provider's control. (Even if using IPV6 depending how your carrier has that configured you may not be able to connect.)

For test purposes I would take it down to the simplest case on your home network, which is under your control, and see if you can connect.

Just a thought, did you set a non-standard port for sshd on the Pinephone? If so you'd need to specify the port in putty or use the "-p" option if running ssh client from the command line.