Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Problem: I need to access a command line API on a Remote machine.
我正在使用 Scala Amonite 库,我想知道是否有办法 ssh 并提供密码,这样我就可以在应用程序中进行操作,而不必在其中输入密码。
最好使用公钥认证而不是密码。无论如何,这是一个最佳实践,并且可以从脚本内部解决您的 ssh 问题,而无需提供密码。