Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.95 KB

SSH-Without-Password.md

File metadata and controls

59 lines (38 loc) · 1.95 KB

Back | Next | Contents
Appendix

SSH without password (using keys)

Summary

It's tedious to keep typing the password everytime I need to copy something or ssh into my de10-nano. So listing the steps here to ssh/scp without a password using ssh keys.

Steps

Create the public key on development machine

Note: If you've generated keys for github for your development machine, you can re-use the same ones. No need to create them again. In that case, skip this step.

Create a new key pair with the following command:

ssh-keygen -t rsa -b 4096 -C "[email protected]"

Press Enter to accept default file location and name.

I prefer no passphrase, but you can enter the passphrase if you like.

The private and public keys created can be seen with:

ls ~/.ssh/id_*

Copy the public key to de10-nano

ssh-copy-id root@<de10-ip-address>

Enter the password and that completes it!

References

linuxize.com - how to setup passwordless ssh login - Most steps taken from here.

Next | Creating a bootscript
Back | Yocto Linux

Appendix | Table of Contents