You can run multiple OS commands as part of ssh with -t (force pseudo tty allocation) such as
$ ssh -t -i <key> ec2-user@<EIP> 'sudo yum -y update openssl && sudo openssl version -a'
$ ssh -t -i <key> ec2-user@<EIP> 'sudo yum -y update openssl && sudo openssl version -a'
No comments:
Post a Comment