I'm connecting from one remote machine to many remote machines within one network. Username and password for all remote machines is the same. I want to write a script that will use my username and pass to login to machine. I can't install any tool on host machine (expect or sshpass). Copying public key to target remote machine doesn't make a sense since I rarely connect more than once to the same machine. Everyday - new machines.
Is it possible to set up ssh on host machine to be able to connect to remote machines without need to set something on target machines?
Local machine that I'm using to connect to the rest of the network - SUSE Linux Enterprise Server 11 SP3
#!/bin/bash ssh $1 sshpass -p _pass_ ssh user@$1