No, it isn’t possible to automate the use of Teleport with
curl in the way I think you want to.
I think what you’re asking is how to disable OTP - you can disable this with a setting in the
teleport.yaml configuration file:
Restart Teleport after making this change.
Alternatively, if you want to be able to keep OTP enabled for users but generate long-lived certificates for automation (say for automatic use with Ansible or Jenkins) then you can follow the instructions here: https://gravitational.com/teleport/docs/user-manual/#ssh-certificates-for-automation
Please let us know if you have any more questions.