Linux/Start

ansible 설정

Lee seongwoo 2024. 11. 4. 16:30
반응형

1. 계정생성

#useradd -m -d /opt/anagent anagent

#chage -E -1 -M 9999 anagent

#usermod -G wheel anagent

 

2. python 환경설정

#cd /opt/anagent

#tar -xvf python-2.6.5.tar (python 2.6이상필요)

#cd python-2.6.5

#./configure && make && make install

#whereis python

 

3. openssh 환경구성

#vi /etc/ssh/sshd_config

…생략…

Port 22222

AuthorizedKeysFile .ssh/authorized_keys 추가

…생략…

#service sshd restart

반응형