jenkins build - trying to execute shell command that include ssh command
<p><strong>Background Information</strong></p>

<p>I'm trying to get jenkins to execute the following shell commands as a part of my build process: </p>

<pre><code>ssh root@10.111.11.11
rc-status
</code></pre>

<p>Right now it's failing with the following error message: </p>

<pre><code>Started by user anonymous
Building in workspace /var/lib/jenkins/jobs/Ansible Repo/workspace
 &gt; git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 &gt; git config remote.origin.url http://git.core.myinternaldomain.net/cgit/ansible.git/ # timeout=10
Fetching upstream changes from http://git.core.myinternaldomain.net/cgit/ansible.git/
 &gt; git --version # timeout=10
using .gitcredentials to set credentials
 &gt; git config --local credential.username git # timeout=10
 &gt; git config --local credential.helper store --file=/tmp/git805322146950822569.credentials # timeout=10
 &gt; git -c core.askpass=true fetch --tags --progress http://git.myinternaldomain.net/cgit/ansible.git/ +refs/heads/*:refs/remotes/origin/*
 &gt; git config --local --remove-section credential # timeout=10
 &gt; git rev-parse refs/remotes/origin/dev^{commit} # timeout=10
 &gt; git rev-parse refs/remotes/origin/origin/dev^{commit} # timeout=10
Checking out Revision 3cf34f240632e3296793c130f4589fbceb37f5bf (refs/remotes/origin/dev)
 &gt; git config core.sparsecheckout # timeout=10
 &gt; git checkout -f 3cf34f240632e3296793c130f4589fbceb37f5bf
 &gt; git rev-list 3cf34f240632e3296793c130f4589fbceb37f5bf # timeout=10
[workspace] $ /bin/sh -xe /tmp/hudson50385520935510733.sh
+ ssh root@10.111.11.11
Pseudo-terminal will not be allocated because stdin is not a terminal.
Host key verification failed.
Build step 'Execute shell' marked build as failure
Finished: FAILURE
</code></pre>

<p>What I've tried so far: </p>

<p>Unfortunately, it doesn't seem to tell me the line number in the known_hosts file that it doesn't like. 
On the same server that jenkins is running on, I can successfully ssh into  the remote server 10.111.11.11 with no errors from a command prompt. </p>

<p>Could it be the fact that it's trying as "anonymous" instead of my id? 
If so, how do I resolve this?  I can't see anything that allows me to specify what user to ssh as in jenkins. </p>

<p>Thanks. </p>