お世話になります
使用マシンなど
MacOS Sierra
Bagrant+CentOS7.2
ansible 2.3.0.0
[vagrant@host ~]$ ssh-copy-id db
ssh: connect to host db port 22: Network is unreachable
このようになり設定できません
Congigを修正すればなおるのでしょうか?
設定内容
[vagrant@host ~]$ ssh-copy-id web
The authenticity of host '192.168.43.52 (192.168.43.52)' can't be established.
ECDSA key fingerprint is f3:74:dd:09:ed:0c:50:41:ca:68:8c:50:9c:65:94:f8.
Are you sure you want to continue connecting (yes/no)? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
vagrant@192.168.43.52's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'web'"
and check to make sure that only the key(s) you wanted were added.
[vagrant@host ~]$ ssh-copy-id db
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: ERROR: ssh: connect to host db port 22: Network is unreachable
[vagrant@host ~]$ ssh web
[vagrant@web ~]$ exit
ログアウト
Connection to 192.168.43.52 closed.
[vagrant@host ~]$ ssh db
ssh: connect to host db port 22: Network is unreachable
[vagrant@host ~]$ exit
ログアウト
Connection to 127.0.0.1 closed.
mtg:ansible_lessons moriuchiryouko$
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。