Hello!
I installed Ansible on Debian.
When I try to access cisco device:
"ansible all -m ping -c ssh -u test --ask-pass"
I get an error:
SSH password:
192.168.150.39 | FAILED >> {
"failed": true,
"msg": "\r\nerror: unknown command: /bin/sh\r\nOpenSSH_6.7p1 Debian-5,
OpenSSL 1.0.1k 8 Jan 2015\r\ndebug1: Reading configuration data
/etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying
options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1:
mux_client_request_session: master session id: 2\r\nShared connection to
192.168.150.39 closed.\r\n",
"parsed": false
}
My Ansible config file:
***************************************************************************
root@debian:~/ansible/files# less /etc/ansible/ansible.cfg
inventory = /etc/ansible/hosts
#library = /usr/share/my_modules/
remote_tmp = $HOME/.ansible/tmp
pattern = *
forks = 5
poll_interval = 15
sudo_user = root
#ask_sudo_pass = True
#ask_pass = True
transport = smart
#remote_port = 22
#host_key_checking = False
module_lang = C
private_key_file = ~/ansible/files/workstation.pub
***************************************************************
My ssh config:
root@debian:~/ansible/files# less /etc/ssh/ssh_config
Host *
IdentityFile ~/.ssh/identity
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/id_dsa
Port 22
Protocol 2,1
Cipher 3des
Ciphers
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no
***********************************************************************
Please help me with my problem!
Thanks.
--
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/960e3e6e-d760-4ee9-ae9d-4fd4a95a83d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.