码迷,mamicode.com
首页 > 其他好文 > 详细

sam配置命令概要

时间:2014-10-22 22:02:48      阅读:253      评论:0      收藏:0      [点我收藏+]

标签:redhat   sam   satellite   rhca   

./install_packages --enhanced_reporting
katello-configure --deployment=sam --user-pass=redhat

chkconfig mongod on
service mongod start
su - splice -s /bin/sh -c ‘ssh-keygen -t rsa -f /var/lib/splice/id_rsa-sat -N ""‘
cat /var/lib/splice/id_rsa-sat.pub

 

RHS:
useradd swreport
mkdir /home/swreport/.ssh
scp sam:/var/lib/splice/id_rsa-sat.pub /home/swreport/.ssh/authorized_keys

在authorized_keys文件中加入command="/usr/bin/spacewalk-report $SSH_ORIGINAL_COMMAND"

chown -R swreport:swreport /home/swreport/.ssh
chmod 700 /home/swreport/.ssh
chmod 600 /home/swreport/.ssh/authorized_keys
restorecon -R /home/swreport/.ssh
gpasswd -a swreport apache


SAM:
su - splice -s /bin/bash
ssh -i /var/lib/splice/id_rsa-sat swreport@rhs7.example.com splice-export

vi /etc/splice/checkin.conf


su - splice -s /bin/bash
spacewalk-splice-checkin

sam配置命令概要

标签:redhat   sam   satellite   rhca   

原文地址:http://blog.csdn.net/xztjhs/article/details/40383215

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!