How to ssh into an unrooted Android device using sshdroid from a Linux computer I can't seem to ssh into my Android device. I have not rooted the device and I don't really want to. I tried connecting to it via the terminal using the following command:

ssh root@ip-address:port-number


the error I received was:


  name or service is not known


How can I resolve it?
Summing up from the comments


This answer states to use ssh &lt;user&gt;@&lt;ip&gt; -p &lt;port&gt; instead of the "colon syntax"
In SSHDroid, go to "Options" and check/define the port (default: 2222) and password to be used
According to the screenshots on the app's playstore page, if not using root mode you can use any user name to connect. Thus if you followed above steps, this should now work (of course with &lt;android-ip&gt; replaced by the real IP address of the Android device):

ssh me@&lt;android-ip&gt; -p 2222