Re: Openssh over a mobile network

2019-12-01 Thread Stuart Longland
On 1/12/19 11:43 pm, putridsou...@gmail.com wrote:
> I am not able to ssh into my home computer connected to
> router,  the client device (termux on android) is on a
> mobile network. Is there something I am supposed to 
> know?. Because I can ssh into my computer easily when
> when both devices are on the same router network. 

- Are you using the right address on your device?  If you have a DNS
hostname configured, check its A and/or  record points to the
correct IP address.  (This must be a publicly routable IPv4/IPv6 address
*NOT* be a RFC-1918 private IPv4 address or RFC-4193 ULA IPv6 address.)
- Is your OpenSSH server behind a router?  Is that configured correctly?
- Is your ISP (for the phone or your home computer) perhaps blocking
ports?  Try editing /etc/ssh/sshd_config and change the port to
something high, maybe 2?

-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.



Re: Openssh over a mobile network

2019-12-01 Thread Josh Grosse
On Sun, Dec 01, 2019 at 07:13:18PM +0530, putridsou...@gmail.com wrote:
> I am not able to ssh into my home computer connected to
> router,  the client device (termux on android) is on a
> mobile network. Is there something I am supposed to 
> know?. Because I can ssh into my computer easily when
> when both devices are on the same router network. 

I assume your router uses Network Address Translation (NAT). You must instruct
it to *forward* the incoming SSH traffic.  NAT is commonly used to separate
a private network from the Internet, particularly with small business or  
home networks.  

See your router's documentation for port forwarding.  The standard destination
port number for SSH is 22.



Openssh over a mobile network

2019-12-01 Thread putridsoul66
I am not able to ssh into my home computer connected to
router,  the client device (termux on android) is on a
mobile network. Is there something I am supposed to 
know?. Because I can ssh into my computer easily when
when both devices are on the same router network.