Setup SSH
Add SSH keys
Please follow these instructions to generate SSH private and public keys with PuttyGen on Windows. To be able to access the board via SSH properly we copy generated SSH private and public keys.
This process will be updated as soon as the OpenSSH for Windows 10 (currently in beta) will be released. We should be able to use ssh-copy-id
that currently returns an cryptic exec request failed on channel 0
error.
mkdir .ssh
cd .ssh
Copy Private Key Fire up your favorite editor (nano) and copy the the content of id_rsa (private key).
nano id_rsa
Copy Public Key Copy the the content of id_rsa.pub (public key).
nano id_rsa.pub
Copy Public Key Copy the the content of authorized_keys.
nano authorized_keys
Make these keys available for linaro and [new username]
cd ..
cp -r .ssh /home/linaro/
cp -r .ssh /home/[new username]/
Update /etc/ssh/sshd_config
to enable SSH and X11 windowing system for root and members of the ssh group that linaro and [new username] are member of.
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
sed -i 's/UsePAM yes/UsePAM no/' /etc/ssh/sshd_config
sed -i 's/#PermitRootLogin/PermitRootLogin/' /etc/ssh/sshd_config
sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin no/' /etc/ssh/sshd_config
sed -i 's/#X11DisplayOffset/X11DisplayOffset/' /etc/ssh/sshd_config
echo "" >> /etc/ssh/sshd_config
echo "# SSH ACL" >> /etc/ssh/sshd_config
echo "AllowGroups ssh" >> /etc/ssh/sshd_config
sudo systemctl enable ssh
Reboot
reboot
Login to dragonboard 820c via SSH
On windows 10 start Putty. Please refer to the 1.3.2.2 For PC with Windows 10 chapter of the DB410c Major League Hack Quick Start Guide for more details.