I've created a bash script that sometimes need me to enter some information (other machine password / username) when I run it.
Is there a way to prevent this by entering (hard-coding) this information in the code? In this way when I execute it, it will run smoothly without asking me to input anything.
This is the command:
scp /home/machine1/backup/test.txt /home/machine2/backup
Instead of typing the machine2 password, I want to hard code it in my script.