0

Problem: I need to access a command line API on a Remote machine.

I am playing with Scala Amonite libs, i wonder if there is a way to ssh and supply the password, so that i can do it from within an application and not have to enter the pass in the middle of it.

1 Answer 1

2

It's best to use public key authentication not passwords. It's a best practice regardless, & solves your problem of ssh from inside a script without having to provide a password.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.