一、cxwh用户ssh免密登陆至xtjk用户
1、cxwh用户执行
ssh-keygen -t rsa -N "" -f /home/cxwh/.ssh/id_rsa
cp /home/cxwh/.ssh/id_rsa.pub /tmp/id_rsa.pub
2、xtjk用户执行
mkdir -p -m 700 /home/cib/.ssh/
echo `cat /tmp/id_rsa.pub` >> /home/cib/.ssh/authorized_keys
chmod 600 /home/cib/.ssh/authorized_keys
3、至此,cxwh用户可ssh切换至xtjk用户
ssh xtjk@[hostname]