Hello, I am still pretty new to bash scripting so hopefully this is even possible. All day I have to connect to various unix servers via ssh or ovpn. These servers report the current ip hourly to our dns server. I am trying to minimize the few hundred times a day i type ssh myUN@xy1234.mydns
etc to connect. 1234 being a store number.
I would like to create a login script that has 2 options. -o = ovpn and -s= ssh. Is this possible.
is always used for ssh.
openvpn --remote xy_____.mydns --config client.ovpn is always used for ovpn.
I would like to be able to type something like,
[jim@localhost tools]$ ./login -? 1234
again 1234 being the store number I need to connect to.
Is this possible. Any help is greatly appreciated.....