How can I communicate with a Linux computer from my Android phone with the help of SSH?

I connected Android device from Linux computer vith SSH.

How I communicate with a linux machine via SSH?

closed as unclear what you're asking by thrig, Jeff Schaller, Rui F Ribeiro, Anthony Geoghegan, G-Man Feb 7 '18 at 5:17

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    what does "I can not do this" mean? connected how? – thrig Feb 6 '18 at 18:23
  • Its mean : I installed openssh-server on my linux computer, after Iinstalled termux to my my android device after I tryed connect to ssh it does not connected. Sorry for my english – bluebear Feb 6 '18 at 18:30
  • The Android device and the PC must be in the same network, once this is done you only need to install some android apks that allow you use SSH for "talk" with PC (I use one that is free: ConnectBot). – k.Cyborg Feb 6 '18 at 18:34
  • Yes, devices in the same network. ConnectBot did not give any output. – bluebear Feb 6 '18 at 18:41
  • I'm also using ConnectBot. Do you know on what port and IP address sshd is listening? – Gerard H. Pille Feb 6 '18 at 19:31

You need to make sure you have ssh acess on the account you are trying to connect to. open /etc/ssh/ssh_config and add:

PermitRootLogin no
AllowUsers username

Replace username with the user you would like to ssh into. Restart ssh with either sudo service ssh reload or systemctl restart sshd

  • Did not. Can a program block openssh. How can I look for it. – bluebear Feb 6 '18 at 19:24
  • A firewall on your computer or network could block ssh. Make sure your firewall has rules to allow connections with port 22. – imaoreo Feb 6 '18 at 19:30
  • Firewall blocks – bluebear Feb 6 '18 at 19:38

Not the answer you're looking for? Browse other questions tagged or ask your own question.