ssh 썸네일형 리스트형 .gitlab-ci.yml image: jsrjsr0040/centos-apm-sshvariables: STAGING_SERVER: 123.123.123.123 DEPLOY_SERVER: 123.123.123.123 STAGING_TAGS: 'staging-' DEPLOY_TAGS: 'real-' GITID: 'gitid' GITPASS: 'gitpath' stages: - build - test - deploy before_script: - echo "Before Script" - mkdir -p ~/.ssh - chmod 700 ~/.ssh - eval $(ssh-agent -s) - echo "$SSH_KEY"| ssh-add - - ssh-keyscan -p 9022 $STAGING_SERVER > ~/.ssh/known_.. 더보기 Regist and use SSH KEY Use ssh-rsa key to connect to the server. Various useful things can be used.(But security should be careful) ]$ ssh-keygen -t rsa Super easy ! Just press Enters..It make public key, private key.Basic create path is ~/.ssh/id_rsa, ~/.ssh/id_rsa.pubid_rsa is called private key.id_rsa.pub is callged public key. Points to note! id_rsa can cause a very big problem if it is shared, so keep it from bei.. 더보기 이전 1 다음