Android与linux的关系可以参考这篇博文:

http://blog.csdn.net/u013752202/article/details/53648823

安卓手机可以安装例如:Terminal,SSHDroid等工具。

使用ssh登陆android手机需要注意配置端口:

# Package generated configuration file
# See the sshd_config(5) manpage for details# What ports, IPs and protocols we listen for
Port 1234
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
#ListenAddress 0.0.0.0Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 1024# Logging
SyslogFacility AUTH
LogLevel INFO# Authentication:
LoginGraceTime 120
PermitRootLogin without-password
StrictModes yesRSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yesX11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no#MaxStartups 10:30:60
#Banner /etc/issue.net# Allow client to pass locale environment variables
AcceptEnv LANG LC_*Subsystem sftp /usr/lib/openssh/sftp-server# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes

----配置完成后,重启 sudo /etc/init.d/ssh restart

然后就可以用ssh登陆手机:

exbot@relay-Aspire-4741:~$ ssh -p 1234 localhost
The authenticity of host '[localhost]:1234 ([127.0.0.1]:1234)' can't be established.
ECDSA key fingerprint is 15:82:ed:f2:0d:52:21:b8:b6:c7:2e:9a:d4:91:a8:0f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[localhost]:1234' (ECDSA) to the list of known hosts.
exbot@localhost's password:
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-75-generic x86_64)* Documentation:  https://help.ubuntu.com/Your Hardware Enablement Stack (HWE) is supported until April 2019.
Last login: Sun Jan 22 13:14:50 2017
exbot@relay-Aspire-4741:~$ exit
logout
Connection to localhost closed.
exbot@relay-Aspire-4741:~$ ssh -p 1234 192.168.1.101
The authenticity of host '[192.168.1.101]:1234 ([192.168.1.101]:1234)' can't be established.
RSA key fingerprint is b5:9b:9b:5a:c3:1a:cc:e7:c5:10:aa:33:38:21:67:c9.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[192.168.1.101]:1234' (RSA) to the list of known hosts.
SSHDroid
Use 'root' as username
Default password is 'admin'
exbot@192.168.1.101's password:
u0_a102@hwALE-H:/data/data/berserker.android.apps.sshdroid/home $ ls
u0_a102@hwALE-H:/data/data/berserker.android.apps.sshdroid/home $ cd ..
u0_a102@hwALE-H:/data/data/berserker.android.apps.sshdroid $ ls
app_webview   code_cache    dropbear      home          shared_prefs
cache         databases     files         lib
u0_a102@hwALE-H:/data/data/berserker.android.apps.sshdroid $

Ubuntu ssh 安卓手机相关推荐

  1. [Ubuntu] 在安卓手机中安装 Ubuntu

    安卓系统的内核也是Linux, 所以安卓手机中是可以安装Ubuntu系统的, 搜索下载Termux, 然后按照下面步骤操作即可安装Ubuntu 1. 更新和配置系统 # 将安装源修改为 http:// ...

  2. 关于火狐浏览器在ubuntu和安卓手机上的同步

    最近在ubuntu使用火狐浏览器,感觉还不错.我想着,如果在我的安卓手机上装一个火狐浏览器,我就可以在手机上查看电脑上所收藏的网站了.然后我就去安卓应用市场下载了最新版的火狐浏览器.令人奇怪的是,我在 ...

  3. SSHelper: 在ubuntu 和安卓手机之间无线传输文件

    1.在手机上安装 sshelper: https://play.google.com/store/apps/details?id=com.arachnoid.sshelper&hl=en ht ...

  4. Ubuntu安卓手机投屏

    之前还在用windows的时候,360有自带的手机管家可以将手机屏幕投放在电脑屏幕上,而切了Ubuntu之后,这个需求就一直无法实现. 其实解决方案很简单,只需要使用scrcpy框架就可以了,然而如果 ...

  5. 安卓系统手机无法连接服务器,安卓手机无法连接服务器

    安卓手机无法连接服务器 内容精选 换一换 您可以通过ADB方式和VNC方式连接云手机实例.ADB方式:Android Debug Bridge(简称ADB),是一个Android操作系统与桌面电脑间沟 ...

  6. 安卓手机的文件如何传到linux里去,如何在Linux下安装安卓文件传输助手

    CTO练习营 | 12月3-5日,深圳,是时刻成为优良的技巧治理者了 如不雅你测验测验在 Ubuntu 下连接你的安卓手机,你也许可以尝尝 Linux 下的安卓文件传输助手. 如今,有可能一部分人想知 ...

  7. 在安卓手机上下载linux系统,如何在安卓手机上运行Ubuntu系统

    Ubuntu是一款linux系统,一般我们都是将其运行在电脑中,可不可以在手机端也能运行Ubuntu呢?也是可以的,想知道如何实现的,就跟我来吧. 第一步: 首先, 你的手机需要获取root权限. 如 ...

  8. 5分钟教会你在安卓手机上下载liuns系统的ubuntu版本

    5分钟教会你在安卓手机上下载liuns系统的ubuntu版本,其中用到termux,Termux是一个Android终端仿真器和Linux环境应用程序,直接工作,无需根目录或设置.一个最小的基本系统被 ...

  9. 【Android工具】好软件推荐,安卓手机免费好用的SSH客户端——JuiceSSH

    电脑上(windows)SSH客户端很多,putty,WinSCP,Xshell...根据需求不同很容易选择.简单易用.需要右键粘贴用putty:需要记录终端信息用Xshell:需要组合功能WinSC ...

最新文章

  1. 余承东和张小龙背后的故事:成年人,请远离线性努力
  2. 计算机图形什么叫参数连续性,计算机图形学--参数三次插值样条曲线.ppt
  3. git revert改写提交
  4. error LNK2019: unresolved external symbol __imp__ func@20 referenced in function..
  5. OpenGL textures combined组合纹理的实例
  6. 所有和Java中代理有关的知识点都在这了
  7. SQL Server实现读写分离提高系统并发
  8. Netty空闲心跳检测机制
  9. python将一个文件夹下图片到另外一个文件夹下
  10. python 调用apollo
  11. python写字_用Python写书法作品,WOW!
  12. 清华EMBA课程系列思考之四 -- 组织行为学
  13. 802.1QCC TSN配置模型
  14. 图片文字识别—OCR技术
  15. 儿童手工制作日历_日历的手工制作教程图解
  16. [技术分享]-Servlet/tomcat/spring mvc之间关系
  17. python不重复排列组合_python解决排列组合
  18. 关于CGI的一些认识
  19. 百城千屏落地,8K超高清视频内容供给看何方?
  20. 华为meit30有鸿蒙,华为meit30拍星星可以拍清楚吗?_科技数码通

热门文章

  1. 什么是百度快照劫持?百度快照劫持原理和解决办法
  2. 短视频矩阵营销怎么做?来了解小魔推拓客新模式
  3. 张家口计算机中专学校,张家口中专学校名单
  4. 有道词典之父:曾梦想执笔去教书,却转岗当上CEO
  5. 关于Qrcode的学习
  6. Android Studio升级后 出现在No subject alternative DNS name matching services.gradle.org found.
  7. Ubuntu16.04系统下汉字显示为方框解决办法
  8. 【Vue】数据改变,DOM不渲染问题
  9. OSG+MyGUI结合下中文输入的若干问题
  10. 【愚公系列】2022年04月 微信小程序-项目篇(公交查询)-02周边站点-获取位置和城市信息