OpenSSH

作者: 呆呆滴木木菇凉 | 来源:发表于2018-04-24 14:21 被阅读0次

    OpenSSH会在iOS上安装SSH服务,以给外界提供一个通过ssh接入iOS的途径。

    这里用的最多的一般只有2个命令:ssh和scp,前者用于远程登录,后者用于远程拷贝文件。

    ssh用法:ssh user@iOSIP

    示例:Mac远程连接iphone

    wifi:~ clf$ ssh root@192.168.2.2
    The authenticity of host '192.168.2.2 (192.168.2.2)' can't be established.
    ECDSA key fingerprint is SHA256:o2jgbSUKqlEYdg+5xzJsOvY63ZnxhcOCeRxZo9Ibw/Y.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added '192.168.2.2' (ECDSA) to the list of known hosts.
    root@192.168.2.2's password: 
    iPhone:~ root# 
    

    scp用法:

    1)把文件从本地拷贝到iOS上

    scp localFilePath user@iOSIP:romoteFilePath

    2)把文件从iOS拷贝到本地

    scp user@iOSIP:romoteFilePath localFilePath

    相关文章

      网友评论

        本文标题:OpenSSH

        本文链接:https://www.haomeiwen.com/subject/mykjlftx.html