I have two phones
B which use Mobile Data. I would like to connect from phone
A to phone
B, the later has an SSH server running on port
8022. The central SSH server is running on AWS and has an Elastic IP.
A can connect to AWS Server directly at port
22, so can phone
AWS Server configuration:
GatewayPorts yes TCP forward yes Password Authentication Yes
Further I have forwarded port
9099 on AWS SSH server to local port
8022 on phone
~$ ssh -NR 9099:localhost:8022 user@Remoteip
netstat -tpln on AWS SSH server I can see that
9099 is in listening mode.
But when I ssh from phone
A into AWS server at port
9099 it says timed out.