I'm using a series of commands for deploying my files to production. This is currently done manually.
Is it possible to make these commands into an executable file? So that I don't have to copy paste these commands each and every time.
When the first line is executed i.e., connecting to the root server, it will ask for the password and I have to paste the password: xxxxxxxxxxxxxx
ssh root@server pwd: xxxxxxxxxxxxxx ssh-agent bash ssh-add bi-master cd /home/trans/bimaster git status git pull email@example.com:xxxxxxxxx/bimaster.git master
Note : I'm the admin of the server, Since the project is been done by different teams as of now, we have decided to do manual deployment (cannot use Jenkins or any other tools for automated deployment), as we have to check the status of some files.