&gt; Problem 2. Now you have to handle prompt. Some Cfg tools are capable but is quite painful for others, which means you can&#x27;t automate 2nd auth. Actually you can automate like 2nd auth there are paid service out there offer API.<p>You can use ssh-agents for this. Some people consider that cheating though |;)