7

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?

Huey
  • 1,106
  • 5
  • 14
  • 29
user121392
  • 73
  • 1
  • 1
  • 4

1 Answers1

6

Summing up from the comments

  1. This answer states to use ssh <user>@<ip> -p <port> instead of the "colon syntax"
  2. In SSHDroid, go to "Options" and check/define the port (default: 2222) and password to be used
  3. 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 <android-ip> replaced by the real IP address of the Android device):

    ssh me@<android-ip> -p 2222
    
Izzy
  • 91,536
  • 76
  • 351
  • 968