So, I'm using ssh to connect my phone to my pc. I am able to connect when I'm connected to my LAN. so entering like
ssh username@192.168.1.7
will connect and I can list all my directories and everything. but I don't want this. I want to be on my own mobile data plan and access my computer. I go to this site 'whatismyip' I get my public ipv4 address and I do the following code
ssh username@162.122.32.**.**
** are just random number(I don't want to show my public IP to everyone)
the above IP address is the same as my iPhone IP address and my laptop and my android when connected to LAN. I know NAT port does that for its purpose to save IP addresses and that might be the reason why I was not able to connect to my pc.
ok the error I get is
unable to negotiate with 'public IP address' port 22: no matching key found their offer diffie-hellman-group-sha1
So, what I want is when I'm in Singapore I can connect to my laptop(with public IP) which is in India through my phone. I use android. Sorry if it's a noob question. I'm new to Linux and these things just interest me.