Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

SSH key authentication
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
SSH key authentication
18th Jun, 2015, 07:14 AM
Post: #2
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: SSH key authentication
In a normal setup it's pretty easy.

XBian 1
Code:
~# ssh-keygen -f /root/.ssh/id_xbian -N ""
~# cat /root/.ssh/id_xbian.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyv3fYKrokrVm8PTqtwLuJjUarvJlCbnbR8HAwUlaVLo3vz+I6​WnB+vXemJ6gcCL8Re0Y1RDN1ThikPJ+rBG7lc8cca5bMbcQ98J6EVPljd/aoabkMntKcTYBwfEXNQljOpxb94Kp4/9OEPo8Sg68p+m2evfZmaa6UhA/DzIKWSI3ZBbQpH+XV+sZd1c7fsdp4/OLCKrXwrWd9xlcKvx60hI6Eg8f9Z/vd3sINsrgN83Lq/PynTWVcciUSSbBOB8nYLCMR2apMLDpiqBmLxNO5mI0VEdht/sfEjZxDZi/ldTaMnVNLqs0Qk58XJlDcRzL2oHtCVX9UHsKVxNz9KFwp

XBian 2
Code:
~# echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyv3fYKrokrVm8PTqtwLuJjUarvJlCbnbR8HAwUlaVLo3vz+I6​WnB+vXemJ6gcCL8Re0Y1RDN1ThikPJ+rBG7lc8cca5bMbcQ98J6EVPljd/aoabkMntKcTYBwfEXNQljOpxb94Kp4/9OEPo8Sg68p+m2evfZmaa6UhA/DzIKWSI3ZBbQpH+XV+sZd1c7fsdp4/OLCKrXwrWd9xlcKvx60hI6Eg8f9Z/vd3sINsrgN83Lq/PynTWVcciUSSbBOB8nYLCMR2apMLDpiqBmLxNO5mI0VEdht/sfEjZxDZi/ldTaMnVNLqs0Qk58XJlDcRzL2oHtCVX9UHsKVxNz9KFwp" > /root/.ssh/authorized_keys
~# chmod 600 /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
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


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

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 14th Jun, 2025, 03:10 PM Powered By MyBB, © 2002-2025 MyBB Group.