Hardware Reference
In-Depth Information
any hosts from before. The StrictHostKeyChecking no setting tells SSH to auto-
matically add new hosts without asking.
The User root line solves a different problem. I generally log in to my Bone as root ;
this line makes SSH default to root , so I can enter the SSH without the root@ , and it
will log me in as root :
host$ ssh 192.168.7.2
root@192.168.7.2's password:
bone#
TIP
You can have a password on your Bone, but not have to type it in everytime you SSH to the
Bone. From your host, do this:
host$ ssh-copy-id root@192.168.7.2
The authenticity of host '192.168.7.2 (192.168.7.2)'
can't be established.
ECDSA key fingerprint is
54:ce:02:e5:83:3f:01:b3:bc:fd:43:fe:08:d4:97:ff.
Are you sure you want to continue connecting
(yes/no)? yes
Warning: Permanently added '192.168.7.2' (ECDSA)
to the list of known hosts.
Now try logging into the machine, with
"ssh 'root@192.168.7.2'", and check in:
~/.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't
expecting.
This copies some keys to the Bone that tell it to allow you to log in from your host without
using a password.
SSH is a very common way to connect between computers. After it's working, it opens up
many other useful commands that are based on it. For example, you can copy files from
one computer to another by using the scp command:
Search WWH ::




Custom Search