Skip to content

ssh failed :ssh: connect to host xx.xx.xx.xx port 22: No route to host #367

@yaoyue

Description

@yaoyue

报错信息

mac 正常访问越狱设备的 ssh,端口正常,mac 上可以正常传输文件到设备。配置了 ssh 无密码访问,mac 也是测试正常。
但是 Xcode 项目配置 MonkeyDevDeviceIP 和 MonkeyDevDevicePassword 和,无法链接 ssh,编译失败,报错如下

ssh: connect to host 172.21.xx.xx port 22: No route to host
ssh -p22 [email protected] mkdir -p "/var/root/MonkeyDevPackages"
Command PhaseScriptExecution failed with a nonzero exit code

具体截图如下:
Image

删除 MonkeyDevDevicePassword ,使用 无密码连接,还是上述报错

调试设备

macOS 15.3.1,Apple M1。
Xcode 16.1,越狱手机是 iPhone7,iOS 14.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions