Sample Header Ad - 728x90

Automatically enter SSH password without using SSH Key, 'expect', 'sshpass' or Python

1 vote
2 answers
12443 views
I have small device that starts up a tiny VM of PowerPC linux that I need to SSH into from a script on a tiny version of Yocto linux. The PowerPC VM SSH passwords stay the same, but it resets _most_ of its core files, including regenerating its ssh keys, each restart. The Yocto linux installation doesn't have the 'expect' command, nor can it install 'sshpass'. It has an extremely limited version of Python. I'd like to be able to complete the password requirement from a basic 'ssh' prompt using only a shell script. Is this possible?
Asked by Julian Villalva (11 rep)
Apr 14, 2016, 12:15 AM
Last activity: Nov 23, 2021, 08:58 AM