TIE- vagrant plugin 설치오류

kyoungyeon·2023년 2월 9일
0

TIE

목록 보기
39/48

Status:

Vagrant 환경설정을 설정하고 있는상황인데,
프로비저닝 도중 안된다...
계속 playbook 할때마다 아래와 같은 에러가 계속되었다.

  • ssh 를 여러개 설치했기 때문일까?
  • vagrant yaml파일을 여러개 만들었는데 이것 때문인건지?

ErrorCode 1

The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Try

Status:

  • knownhost 에는 등록되었는데 ssh node1 하면 Permission denied (publickey,gssapi-keyex,gssapi-with-mic). 나옴
ssh node1
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
[vagrant@control .ssh]$ cd
[vagrant@control ~]$ ssh node2
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

Status :

Vagrant destory 후 node 1 과 node2 로그인이 안됨

  • 새로 up 하자마자 key 관련해서 제일 처음해야할게 keyscan 인가?
  • vagrant up 키자마자 ssh-keygen 해서 키 만들고 바로 ssh-copy-id node1 을 했는데에러가 나옴.

Error Code 2

ssh-copy-id node1 을 한 후 상황 :

ssh-copy-id node1
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/vagrant/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed

Try

  • 수동으로 ansible-server에서 ssh 키 복사해서 node1, node2 접속해서 복사해서 ssh 는 되는상황
  • 그러나..
SSH authentication failed! This is typically caused by the public/private
keypair for the SSH user not being properly set on the guest VM. Please
verify that the guest VM is setup with the proper public key, and that
the private key path for Vagrant is setup properly as well.

같은 에러 발생!

Error3

  • ssh keyscan 후 업데이트 한후 에러남
  • ansible.cfg 파일이 갑자기 오류가 남.
ansible all -m ping
Error reading config file (/home/vagrant/work/ansible.cfg): File contains parsing errors: <???>
        [line  8]: u' become=true\n'
        [line  9]: u' #become_user=root\n'
        [line 10]: u' #become_method=sudo\n'

detail

  • case 1
    • 앞서 ansible all -m ping 했을때 unreachable이 또 떴었음.. 다른 이들도 비슷한 상황인것을 봐서 cfg 파일에 뭔가 문제가 있는것으로 추측이 되나..
profile
🏠TECH & GOSSIP

1개의 댓글

comment-user-thumbnail
2022년 12월 29일

해결하셨을까요 .. 저도 지금 몇일전부터 계속 이러는데 ㅠㅠㅠㅠ

답글 달기