Saturday, 17 August 2013

How to run 10 commands automatically on the ssh'd server w/o a script on that server?

How to run 10 commands automatically on the ssh'd server w/o a script on
that server?

Let's say i just got a new cloud server and i need to execute about 10
commands on it.
things such as
yum install make -y
yum install gcc -y
yum install httpd-devel -y
yum install php-devel - y
yum install python -y
and so on..
but i do not want to run a script on that server with all these commands.
i do not want to upload anything to that server i do not want to have to
type
vi a
and then save it..
and then paste all these commands in it and then have to do
chmod +x
and then have to run
./a
while in the back of my mind i am all paranoid and panicked, if FBI or
someone will see this file and thus my secrets and mindset..
is there a way to keep this ./a file local to myself so it never has to be
created on the server and yet i can still run all these commands to set up
the server ?

No comments:

Post a Comment