SSH not working
#1
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?
  Reply
#2
(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.
  Reply
#3
(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
  Reply
#4
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.
  Reply
#5
Does your wifi have AP isolation enabled? It would block connections between wifi devices.
  Reply
#6
(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.
  Reply
#7
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.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Axolotl not working? ragreenburg 11 228 08-31-2021, 09:34 AM
Last Post: Anna
  mobile data on mobian not working synaption 10 854 08-29-2021, 07:22 AM
Last Post: bcnaz
  Keyboard stopped working on disk encryption screen on Mobian after update cowsay 2 344 08-16-2021, 08:31 AM
Last Post: Zebulon Walton
  Programs unable to open display via sudo or pkexec (linssid not working) Zebulon Walton 3 469 07-24-2021, 06:11 PM
Last Post: Zebulon Walton
  firefox-esr stopped working after June 18 update HLing 17 2,052 07-21-2021, 02:40 PM
Last Post: dante404
  can't get file transfer working. Help, please! quixote 25 2,993 05-28-2021, 06:53 PM
Last Post: Rainer
  chats not working rvh 0 330 05-18-2021, 07:48 AM
Last Post: rvh
  Run Mobian Unstable without risking being stuck without a working phone C0ffeeFreak 3 1,337 04-23-2021, 01:10 PM
Last Post: RTP
  UFW (uncomplicated firewall) Start On Boot - Mobian (working) theD0ctor 2 887 02-28-2021, 09:58 PM
Last Post: theD0ctor
  some flatpaks not working sfb 2 832 02-15-2021, 10:31 AM
Last Post: C0ffeeFreak

Forum Jump:


Users browsing this thread: 1 Guest(s)