一. Mac上的步骤

1. 使用ssh-keygen产生public/private钥匙对。(如果已经有“~/.ssh/id_dsa.pub”文件则忽略此步)

  打开终端(terminal),运行命令  ssh-keygen -t dsa 按提示生成钥匙对

2. 拷贝到iOS设备。

  我没有安装其它工作软件,使用secure copy命令:

  scp ~/.ssh/id_dsa.pub root@192.168.1.10:~/.ssh   (IP地址请改为你的iOS设备)

 

二. 越狱iOS设备上的步骤

  YouriPhone:~root# cd ~/.ssh
  YouriPhone:~/.ssh root# cat id_dsa.pub >> authorized_keys2
  YouriPhone:~/.ssh root#chmod 0600 authorized_keys2

 

Okay,下次ssh到你的iOS设备不需要再输入密码了。

相关文章:

  • 2022-12-23
  • 2021-12-31
  • 2021-06-21
  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
猜你喜欢
  • 2021-10-10
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
相关资源
相似解决方案