SSH key authentication
|
18th Jun, 2015, 07:14 AM
Post: #2
|
|||
|
|||
RE: SSH key authentication
In a normal setup it's pretty easy.
XBian 1 Code: ~# ssh-keygen -f /root/.ssh/id_xbian -N "" XBian 2 Code: ~# echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyv3fYKrokrVm8PTqtwLuJjUarvJlCbnbR8HAwUlaVLo3vz+I6WnB+vXemJ6gcCL8Re0Y1RDN1ThikPJ+rBG7lc8cca5bMbcQ98J6EVPljd/aoabkMntKcTYBwfEXNQljOpxb94Kp4/9OEPo8Sg68p+m2evfZmaa6UhA/DzIKWSI3ZBbQpH+XV+sZd1c7fsdp4/OLCKrXwrWd9xlcKvx60hI6Eg8f9Z/vd3sINsrgN83Lq/PynTWVcciUSSbBOB8nYLCMR2apMLDpiqBmLxNO5mI0VEdht/sfEjZxDZi/ldTaMnVNLqs0Qk58XJlDcRzL2oHtCVX9UHsKVxNz9KFwp" > /root/.ssh/authorized_keys XBian 1 (192.168.1.1) Code: ~# ssh 192.168.1.1 -i /root/.ssh/id_xbian That should be it. Do notice that these steps are made for direct root login over ssh. If you want to use the xbian user, change the XBian 2 key path to /home/xbian/.ssh/authorized_keys. If you login with XBian 1 with ssh xbian@192.168.1.1 -i /root/.ssh/id_xbian pilight - modular domotica solution
|
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
SSH key authentication - Skywatch - 18th Jun, 2015, 06:51 AM
RE: SSH key authentication - CurlyMo - 18th Jun, 2015 07:14 AM
RE: SSH key authentication - Skywatch - 18th Jun, 2015, 06:16 PM
RE: SSH key authentication - CurlyMo - 18th Jun, 2015, 06:31 PM
RE: SSH key authentication - Skywatch - 18th Jun, 2015, 07:42 PM
|