# SSH authentication with multiple prompts

**URL:** <https://forum.ansible.com/t/ssh-authentication-with-multiple-prompts/34194>\
**Category:** Ansible Project\
**Created:** [November 13, 2020, 1:54pm UTC](https://forum.ansible.com/t/ssh-authentication-with-multiple-prompts/34194 "2020-11-13T13:54:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florian\_LACOMMARE](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Florian\_LACOMMARE](https://forum.ansible.com/u/Florian_LACOMMARE)\
**Post date:** [November 13, 2020, 1:54pm UTC](https://forum.ansible.com/t/ssh-authentication-with-multiple-prompts/34194/1 "2020-11-13T13:54:26Z")

</div>

Hello,

I would like to know if it possible to use some network modules (aireos for example) and connect to my device which is asking me multiples prompts (username and password).

The device behavior :  
When you try to ssh to the device, it’s always working (no authentication required), and then the device ask for a username and then a password.

Here’s the debug connection with ssh :

ssh 10.x.x.x -v  
OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017  
debug1: Reading configuration data /home/florian\_lacommare/.ssh/config  
debug1: Reading configuration data /etc/ssh/ssh\_config  
debug1: /etc/ssh/ssh\_config line 59: Applying options for \*  
debug1: Connecting to 10.x.x.x [10.x.x.x] port 22.  
debug1: Connection established.  
debug1: key\_load\_public: No such file or directory  
debug1: identity file /home/florian\_lacommare/.ssh/id\_rsa type -1  
debug1: key\_load\_public: No such file or directory  
debug1: identity file /home/florian\_lacommare/.ssh/id\_rsa-cert type -1  
debug1: key\_load\_public: No such file or directory  
debug1: identity file /home/florian\_lacommare/.ssh/id\_dsa type -1  
debug1: key\_load\_public: No such file or directory  
debug1: identity file /home/florian\_lacommare/.ssh/id\_dsa-cert type -1  
debug1: key\_load\_public: No such file or directory  
debug1: identity file /home/florian\_lacommare/.ssh/id\_ecdsa type -1  
debug1: key\_load\_public: No such file or directory  
debug1: identity file /home/florian\_lacommare/.ssh/id\_ecdsa-cert type -1  
debug1: key\_load\_public: No such file or directory  
debug1: identity file /home/florian\_lacommare/.ssh/id\_ed25519 type -1  
debug1: key\_load\_public: No such file or directory  
debug1: identity file /home/florian\_lacommare/.ssh/id\_ed25519-cert type -1  
debug1: Enabling compatibility mode for protocol 2.0  
debug1: Local version string SSH-2.0-OpenSSH\_7.4  
debug1: Remote protocol version 2.0, remote software version CISCO\_WLC  
debug1: no match: CISCO\_WLC  
debug1: Authenticating to 10.x.x.x:22 as ‘florian\_lacommare’  
debug1: SSH2\_MSG\_KEXINIT sent  
debug1: SSH2\_MSG\_KEXINIT received  
debug1: kex: algorithm: diffie-hellman-group-exchange-sha1  
debug1: kex: host key algorithm: ssh-rsa  
debug1: kex: server-\>client cipher: arcfour128 MAC: hmac-sha2-256 compression: none  
debug1: kex: client-\>server cipher: arcfour128 MAC: hmac-sha2-256 compression: none  
debug1: kex: diffie-hellman-group-exchange-sha1 need=32 dh\_need=32  
debug1: kex: diffie-hellman-group-exchange-sha1 need=32 dh\_need=32  
debug1: SSH2\_MSG\_KEX\_DH\_GEX\_REQUEST(1024\<8192\<8192) sent  
debug1: got SSH2\_MSG\_KEX\_DH\_GEX\_GROUP  
debug1: SSH2\_MSG\_KEX\_DH\_GEX\_INIT sent  
debug1: got SSH2\_MSG\_KEX\_DH\_GEX\_REPLY  
debug1: Server host key: ssh-rsa SHA256:WUCImUIJ7TlGIvZV8ltINHMHkgLR48sGRCrKGZq7goo  
debug1: Host ’ 10.x.x.x ’ is known and matches the RSA host key.  
debug1: Found key in /home/florian\_lacommare/.ssh/known\_hosts:22  
debug1: rekey after 134217728 blocks  
debug1: SSH2\_MSG\_NEWKEYS sent  
debug1: expecting SSH2\_MSG\_NEWKEYS  
debug1: SSH2\_MSG\_NEWKEYS received  
debug1: rekey after 134217728 blocks  
debug1: SSH2\_MSG\_SERVICE\_ACCEPT received  
debug1: Authentication succeeded (none).  
Authenticated to 10.x.x.x ([10.x.x.x]:22).

debug1: channel 0: new [client-session]  
debug1: Entering interactive session.  
debug1: pledge: network  
debug1: Sending environment.  
debug1: Sending env LC\_ALL = en\_US.UTF-8  
debug1: Sending env LANG = en\_US.UTF-8

(Cisco Controller)  
User: myusername  
Password:\*\*\*\*\*\*

Regards
