I'm trying to get started with Ansible in a VM but can't get the SSH 
configuration right. When I try to ping 127.0.0.1 this is the output:

rmphoenix@rmphoenix-VirtualBox:/$ ansible 127.0.0.1 -m ping -vvvv
<127.0.0.1> ESTABLISH CONNECTION FOR USER: rmphoenix
<127.0.0.1> REMOTE_MODULE ping
<127.0.0.1> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', 
'-o', 'ControlPersist=60s', '-o', 
'ControlPath=/home/rmphoenix/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 
'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', 
'-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', '127.0.0.1', 
"/bin/sh -c 'mkdir -p 
$HOME/.ansible/tmp/ansible-tmp-1414537642.17-202946553223564 && chmod a+rx 
$HOME/.ansible/tmp/ansible-tmp-1414537642.17-202946553223564 && echo 
$HOME/.ansible/tmp/ansible-tmp-1414537642.17-202946553223564'"]
EXEC previous known host file not found for 127.0.0.1
127.0.0.1 | FAILED => SSH encountered an unknown error. The output was:
OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: auto-mux: Trying existing master
debug1: Control socket 
"/home/rmphoenix/.ansible/cp/ansible-ssh-127.0.0.1-22-rmphoenix" does not 
exist
debug2: ssh_connect: needpriv 0
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 22.
debug2: fd 3 setting O_NONBLOCK
debug1: connect to address 127.0.0.1 port 22: Connection refused
ssh: connect to host 127.0.0.1 port 22: Connection refused


I'm pretty new to linux as well, any help would be much appreciated!

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/836ede78-d85e-4aff-9e01-634ffcad4338%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to