I have two servers. Server A and B.
I want to run one script on server A by logging in to server B.
Can anyone provide me code for this.? I tried it by using following
ssh username@serverA ./script
Then it prompt me the password. I give correct password of the server A. but it says access denied.
What are other commands to achieve this? Is it required to do some configuration changes on server A and B before doing this?