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.

MaatDeamon
  • 9,532
  • 9
  • 60
  • 127

1 Answers1

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.

Aron T
  • 108
  • 6