I'm trying to connect to a remote Ubuntu machine using ssh protocol. My local OS is Ubuntu 16.04 and the remote OS is 18.04. My local machine is connected to my Android 5 over shared hotspot connection.
On the server machine, the default ssh port(22) has been closed due to security considerations, but the port 6022 has been opened instead.
I've already tested SSH connection from my Android phone to the server using orange SSH and it works well, however, I get a timeout error after a while on my Ubuntu machine when trying to connect. I guess the android doesn't allow connections over a non-default port(in this case 6022). Any idea? Thanks
Note: I'm trying to connect to the server using a password. There's also a private and public key on my laptop which I use for another server.
Update: I suppose I have to use Port Forwarding since I couldn't find a way to open the port on my Android device.