Last Updated: February 25, 2016
·
419
· aleemb

SSH execute command on remote server

Execute command on a remote server via SSH:

ssh -i <key> ubuntu@<server_ip> 'ls -al'