By user121392

2015-08-09 12:04:09 8 Comments

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 [email protected]:port-number

the error I received was:

name or service is not known

How can I resolve it?


@Izzy 2015-08-09 15:19:26

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 [email protected]<android-ip> -p 2222

Related Questions

Sponsored Content

1 Answered Questions

[SOLVED] SSH Tunnel through Android device

  • 2015-08-31 11:10:49
  • Daniel Bischof
  • 1849 View
  • 5 Score
  • 1 Answer
  • Tags:   ssh wifi-tethering

1 Answered Questions

[SOLVED] Read GPS location from command line via SSH

1 Answered Questions

[SOLVED] Permission denied while installing a system app with SSH

1 Answered Questions

[SOLVED] Connect from Android to SSH server without password

  • 2013-03-07 09:00:17
  • teocomi
  • 2027 View
  • 3 Score
  • 1 Answer
  • Tags:   ssh

2 Answered Questions

[SOLVED] What's the best way to turn an Android device into Linux server?

  • 2017-12-23 09:38:59
  • Han
  • 2997 View
  • 0 Score
  • 2 Answer
  • Tags:   linux ssh

4 Answered Questions

[SOLVED] Send files from Linux to Android via ssh

1 Answered Questions

[SOLVED] SSH to Mac using Android Phone

1 Answered Questions

[SOLVED] Can't seem to SSH from Android

  • 2016-04-05 04:41:11
  • PairedPrototype
  • 1720 View
  • 1 Score
  • 1 Answer
  • Tags:   ssh

Sponsored Content