1

I'm trying to access a remote server using SSH on my phone but it dosent seem to work no matter the method/app I try.

I've tried various SSH apps in the play store and recently tried Termux's CLI (which seems great may I add), it successfully got the openssh packages for it, but I still can't seem to access my server from my device using the generic ssh username@domain/ip:port.

I can confirm SSH works fine from desktop using Putty on the same LAN as my phone. I can ping the server from my phone too using both the server's IP and domain.

Termux throws an error when I attempt to connect, something to the effect of Cannot resolve hostname even when using the IP address? Though, like I already said, pinging it works fine. The port is definitely open on the server as well since well, I can connect from my desktop perfectly fine.

I'm running Android 6.0.1 (latest build), my device is rooted and Busybox is also fully installed.

Any help getting my phone connected would be much appreciated!

0

1 Answer 1

4

OpenSSH doesn't use user@host:port notation. If you need to specify a port, you do it with -p port.

0

You must log in to answer this question.