Posted
Filed under Computer/Linux
Create ssh-key
[root@localhost ]# ssh-keygen -t rsa

Copy to authorized_keys
[root@localhost ]# cp -a ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
[root@localhost ]# ls -l ~/.ssh/
total 16
-rw-r--r-- 1 root root  408 Jun  4 16:44 authorized_keys
-rw------- 1 root root 1675 Jun  4 16:43 id_rsa
-rw-r--r-- 1 root root  408 Jun  4 16:43 id_rsa.pub
-rw-r--r-- 1 root root  391 Jun  4 16:44 known_hosts

password-less ssh login test
[root@localhost ]# ssh localhost
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
root@localhost's password:


check like this
[root@localhost ]# stat -c "%a %u %g" /root
550 0 0
This value is correct information

if different value then can login with password-less ssh. (For root account)
example)
permission is 775, 777 or 755 ...
owner is application or normal user account

permission and owner is different then can’t login to root account with ssh-key

[root@localhost ]# chmod 550 /root
[root@localhost ]# chown root:root -R /root

Then will be works.
2014/06/05 06:07 2014/06/05 06:07
[로그인][오픈아이디란?]
Posted
Filed under Computer/Linux
If you want build Heartbeat-3-0-7e3a82377fa8 on RHEL6.5 then it will be error.

if you fix like this then it will be compile.

# cat fix.bug.txt
--- ./lib/plugins/HBcomm/ucast.c 2014-06-03 18:42:44.000000000 +0000
+++ ./lib/plugins/HBcomm/ucast.c.orig 2014-06-03 18:42:32.000000000 +0000
@@ -463,7 +463,8 @@ static int HB_make_send_sock(struct hb_m
  int tos;
 #if defined(SO_BINDTODEVICE)
  struct ifreq i;
-#elif defined(SO_REUSEPORT)
+#endif
+#if defined(SO_REUSEPORT)
  int i = 1;
 #endif
2014/06/05 05:59 2014/06/05 05:59
[로그인][오픈아이디란?]