2007-05-04

[Zaurus] 安裝 SSH Server

雖然 Zaurus 有鍵盤,但是若你要在終端機上編輯一些設定檔,這麼小的鍵盤還是不方便使用。若你外接 USB 鍵盤,鍵盤問題解決了,但螢幕又顯得太小。所以最好的方式是由 PC 上以 SSH 連進 Zaurus 來修改設定檔。

1.首先安裝 openssh-client_3.6.1p1_arm.ipkopenssh-server_3.6.1p1_arm.ipk

2.開啟終端機設定 zaurus 帳號密碼:

bash-2.05$ passwd
Changing password for zaurus
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
Enter new password:
Re-enter new password:
Password changed.

3.設好密碼後如下產生金鑰:

bash-2.05$ ssh-user-keygen.sh

----- Generating User Keys
------- Generating RSA key for SSH v1
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
← 直接按 [Enter] 鍵即可
Be sure to set a password: ssh-keygen -p -f ~/.ssh/identity
------- Generating RSA key for SSH v2
Enter passphrase (empty for no passphrase):
← 直接按 [Enter] 鍵即可
Enter same passphrase again: ← 直接按 [Enter] 鍵即可
Be sure to set a password: ssh-keygen -p -f ~/.ssh/id_rsa
------- Generating DSA key for SSH v2
Enter passphrase (empty for no passphrase):
← 直接按 [Enter] 鍵即可
Enter same passphrase again:
Be sure to set a password: ssh-keygen -p -f ~/.ssh/id_dsa
bash-2.05$ ssh localhost ← 測試連本機
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is 90:00:8a:7c:fd:e1:b9:24:70:b6:c5:51:fd:a3:d0:6e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.

This system is for the use of authorized users only. Individuals using this computer system are subject to having all of their activities on this system monitored and recorded. Anyone using this system expressly consents to such monitoring and is advised that if such monitoring reveals possible criminal activity, system personel may provide evidence of such monitoring to law enforcement.
zaurus@localhost's password:
$ ← 成功登入
當你的 Zaurus 連上網路之後,你就可以使用如 pietty 的工具由 PC 登入了。

沒有留言: