목록* 리눅스 (522)
변군이글루

SSH Config 설정으로 SSH 간편하게 접속하기 일반적인 SSH 접속(ssh, scp) $ ssh -i ~/sshkey/prod.pem ec2-user@111.111.111.111 $ scp -i ~/sshkey/prod.pem ec2-user@111.111.111.111:/abc.txt . SSH Config 설정 $ touch ~/.ssh/config $ chmod 600 ~/.ssh/config SSH Config 편집 $ vim ~/.ssh/config Host awsserver01 hostname 111.111.111.111 user ec2-user identityfile "~/sshkey/prod.pem" port 22 # Host {원격지 서버의 별칭} # HostName {원격지 서버..

fabric hello print on CentOS 7 컨테이너 실행 $ docker run -d --rm --network host --privileged --name fabric --hostname fabric centos "/sbin/init" 컨테이너 안으로 진입 $ docker exec -it fabric bash python3, pip3, fabric3 설치 [root@fabric /]$ yum install -y python3-devel python3-pip vim net-tools git [root@fabric /]$ pip3 install fabric3 python3 및 fab 버전 확인 [root@fabric ~]$ python3 --version Python 3.6.8 [root@fa..

fabric hello print on CentOS 8 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 8.1.1911 (Core) $ python -V Python 3.6.8 $ fab -V Fabric 2.5.0 Paramiko 2.7.2 Invoke 1.5.0 fabfile.py 파일 편집 $ vim fabfile.py from fabric import task @task def hello(ctx): print("hello world.") fab 실행 fab hello $ fab --list Available tasks: hello $ fab hello hello world.