Hi, I have something echoing in /etc/bashrc; need some guidance here.
absible.cfg:
scp_if_ssh = True
hosts:
[myhosts]
host.mydomain.com ansible_connection=ssh
ansible_ssh_user=ec2-user ansible_ssh_private_key_file=/home/ec2-user/.ssh/id_rsa
Output of ansible -i hosts myhosts -m ping -vvvv:
-------------------------------
<
host.mydomain.com> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/ec2-user/.ansible/cp/ansible-ssh-%h-%p-%r" -o IdentityFile="/home/ec2-user/.ssh/id_rsa" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10
host.mydomain.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1450128709.26-37707891136005 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1450128709.26-37707891136005 && echo $HOME/.ansible/tmp/ansible-tmp-1450128709.26-37707891136005'
<
host.mydomain.com> PUT /tmp/tmpQ6fYEm TO /home/ec2-user/.ansible/tmp/ansible-tmp-1450128709.26-37707891136005/ping
host.mydomain.com | FAILED => failed to transfer file to /home/ec2-user/.ansible/tmp/ansible-tmp-1450128709.26-37707891136005/ping:
Agent pid 8554
-------------------------------
Applicable section of /etc/bashrc:
SSHAGENT=/usr/bin/ssh-agent
SSHAGENTARGS="-s"
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then
eval `$SSHAGENT $SSHAGENTARGS`
trap "kill $SSH_AGENT_PID" 0
fi
Is there a workaround for ssh that echos something after login?