Jenkins sshagent execution not working
You can't store a userid/password combination in an ssh agent, only a private key.
Under Jenkins -> Credentials -> System -> Global credentials in the Jenkins web interface, you can add new credentials. Go for an SSH username with private key in global scope. You can use ssh-keygen
to make thew private key. Then your pipeline can do something like:
sshagent (credentials: ['58754abf756cd-6057-.....']) { sh 'scp file host:dir'}
Note that the SSH agent is a plugin that needs installing.