I have ssh forwarding enabled and ssh to server A. On server A I want to run a script as root and take advantage of the ssh key being forwarded for USER to send a file to system B. I'm getting a permission denied when trying to run the following.
# runuser -l USER -c "scp filename.tgz serverB:~/"
ssh user@serverB
– X Tian Feb 11 '14 at 1:07