# SSH problems in VM

**URL:** <https://forum.ansible.com/t/ssh-problems-in-vm/16629>\
**Category:** Ansible Project\
**Created:** [October 28, 2014, 11:20pm UTC](https://forum.ansible.com/t/ssh-problems-in-vm/16629 "2014-10-28T23:20:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rob\_Phoenix](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@Rob\_Phoenix](https://forum.ansible.com/u/Rob_Phoenix)\
**Post date:** [October 28, 2014, 11:20pm UTC](https://forum.ansible.com/t/ssh-problems-in-vm/16629/1 "2014-10-28T23:20:42Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [October 30, 2014, 8:32pm UTC](https://forum.ansible.com/t/ssh-problems-in-vm/16629/2 "2014-10-30T20:32:38Z")

</div>

How do you SSH normally to this host without Ansible from this same machine?
