This page will guide you to setup a SSH connection to i.MX28 EVK board using BSP L2.6.35_1.1.0_130130.
1. Add required package "openssh" & "dhcp"
By default, minimal profile is selected and package "openssh" will not build. To add this package:
$ ltib -m config
Package list --->
[*] Include DHCP server
[*] Include DHCP client support
Then rebuild the LTIB to update the kernel and root fs.
2. Set the current date time
Once the board up, the date is reset to 1970 Jan 1. You need to set the current date time to the board to facilitate the SSH connection. Otherwise SSH will prompt you the password is expired and close the connection. (Unfortunately, the board cannot keep the RTC after power is removed and you need to set the current time every time after boot)
Thu Jan 1 00:00:55 UTC 1970
$ date -s "2014-04-30 09:35"
Wed Apr 30 09:35:00 UTC 2014
3. Set a valid user password
By default, there is no password for the user "root". All SSH connection will be rejected unless a valid password has setup to the user. Use the "passwd" to set a valid password.
4. Start SSH server
You need to start SSH server so the the i.MX28 can listen to any SSH client connection. To start the SSH server
$ cd /etc/rc.d/init.d
$ ./sshd start
If you want to start the SSH server automatically when boot up, please edit "/etc/rc.d/rc.conf" and add "sshd" to arguments "all_services" & "all_services_r".
5. Turn on the Ethernet
There are 2 ethernet ports on i.MX28 EVK board. The lower one is "eth0" and the upper one is "eth1". Plug in your ethernet cable to the lower "eth0" port and start the ethernet by
If you have got "RSA host key for XX.XXX.X.XX has changed and you have requested strict checking. Host key verification failed" error, the PC has identified it is a different ssh host but using the same IP address. To get rid of this error, type command "ssh-keygen -R XX.XXX.X.XX" to remove the relevant key aoosciated with this IP in your PC.