Background I recently had a task that required me to connect to an SFTP server, download particular files (if they existed), and then process the contents. We were given the option of using any language to fulfil the criteria, so I chose Python to ta...

Markdown supported · ⌘↵ to post
Hey manikanta,
I am connecting to jump server which is asking password and passcode. first password gets verified then it ask passcode (code in form of digits coming from authenticator app). I tried your solution for this but later when I tried to execute commands, it gives me following error:
bad authentication type; allowed types: ['publickey', 'gssapi-keyex', 'gssapi-with-mic', 'password']further I need to execute commands and it also show transport has no option to execute commands. could you please figure it out?
I found one answer parallel from stack overflow its similar sitution but when I debug paramiko it shows authentication (password) failed, I am new user so can't share stack overflow link but I am sharing title of question below: Paramiko: password + sms-passcode autentification