首页 > 代码库 > sam配置命令概要

sam配置命令概要

./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配置命令概要