よくJenkinsの「シェルの実行」に設定して使っているのでメモ.
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -t -i /path/to/.ssh/id_rsa hoge@hoge.com "cd /home/hoge/scripts;
php batch.php foo bar"
More than 5 years have passed since last update.
よくJenkinsの「シェルの実行」に設定して使っているのでメモ.
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -t -i /path/to/.ssh/id_rsa hoge@hoge.com "cd /home/hoge/scripts;
php batch.php foo bar"
Register as a new user and use Qiita more conveniently