首先在越獄機子上裝上OpenSSH插件,然後查看設備的IP地址,這裡假設為192.168.xxx.xxx。
然後用Mac上的Terminal通過Open SSH連接到設備上(初次登錄密碼是alpine,必須立即修改,否則任何人都可以連接到你的機子上搞破壞)。
連接命令為:ssh root@設備IP地址
修改密碼命令為:passwd
例如:
$ ssh root@192.168.xxx.xxx The authenticity of host '192.168.xxx.xxx (192.168.xxx.xxx)' can't be established. RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx. Are you sure you want to continue connecting (yes/no)? y Please type 'yes' or 'no': yes Warning: Permanently added '192.168.xxx.xxx' (RSA) to the list of known hosts. root@192.168.xxx.xxx's password: root#
修改密碼:
root# passwd Changing password for root. New password: Retype new password: root#