Monday, June 9, 2014

Running multiple commands with ssh

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'

No comments:

Post a Comment