I am in server 1. I need to remotely login to server 2 from server 1. Now from server 2 I will run a script that will scp some file to server3.
I need to write a script in server 1 that will will automatically remote login from server 1 i.e. it reads password of user@server2 from some file or i can echo password in ssh command. and then it runs the the script in server 2 automatically without any user interference of running it.the automation of scp of server 2 to server 3 has been done in the script that is in server 2. I just need the automation of above mentioned query.
Without using expect or ssh-keygen