iPhone 终端工具 ssh ish

Android终端下有 Termux

那么IOS下iPhone 使用 iSH Shell 可以操作远程 Linux 服务器

iSH是一个可以让你在iOS设备上本地化运行Linux shell环境的项目

iSH是一个项目,它使用用户模式x86模拟器,在iOS设备上本地运行LinuxShell环境。

直接appStore搜索iSH下载就可以了。

参考提示:

可以安装一些软件包,默认没有vim curl bash openssl这些都可以安装

apk add vim

apk add curl

apk add git

apk add bash

简单描述下sshd的配置:

vim /etc/ssh/sshd_config修改配置 增加下面,允许root通过密码登录

PermitRootLogin yes

设置密码

passwd

输入root的密码两遍

生成所有类型的公钥、私钥

ALexiPhone12:~# ssh-keygen -A

ssh-keygen: generating new host keys: RSA

DSA ECDSA ED25519

然后启动服务:

从Mac上登录手机:屏幕锁定就掉线,可以打开设置–然后Disable Screen Dimming

? ~ ssh root@192.168.3.42Warning: Permanently added '192.168.3.42' (ECDSA) to the list of known hosts.root@192.168.3.42's password:Welcome to Alpine!You can install packages with: apk add <package>You may change this message by editing /etc/motd.ALexiPhone12:~#

当然配置免密钥登录的方法和Linux系统一致,在手机的根目录下mkidr .ssh && chmod 700 .ssh && cd .ssh && vi authorized_keys然后添加公钥。在给予权限chmod 600 authorized_keys

? ~ ssh root@192.168.3.42Welcome to Alpine!You can install packages with: apk add <package>You may change this message by editing /etc/motd.ALexiPhone12:~#

关于更多的信息,大家可以直接到官 参考学习。

https://ish.app

https://github.com/ish-app/ish/wiki/Using-iSH

当然也可以通过手机的 文件查看 安装的文件在那里

Here’s a quick step by step guide for running an ssh server.

  1. $ apk add openssh — install the ssh tools and the ssh server.
  2. $ ssh-keygen -A — create the host keys.
  3. $ passwd — Set a password for root to protect your iOS device
  4. $ echo ‘PermitRootLogin yes’ >> /etc/ssh/sshd_config
  5. $ /usr/sbin/sshd

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2020年11月6日
下一篇 2020年11月6日

相关推荐