Скрипт для подключения по SSH, как сделать?
запрашивать адрес сервера, логин, пароль, подключа... Для всего остального Pyton и Bash
Правильно - настроить ключи и Ansible.
Неправильно, но работает - sshpass sshpass - noninteractive ssh password provider
       sshpass  is a utility designed for running ssh using the mode referred to as "keyboard-interactive" password authentica‐
       tion, but in non-interactive mode.
       ssh uses direct TTY access to make sure that the password is indeed issued by an interactive keyboard user. Sshpass runs
       ssh in a dedicated tty, fooling it into thinking it is getting the password from an interactive user.
       The  command  to run is specified after sshpass' own options. Typically it will be "ssh" with arguments, but it can just
       as well be any other command. The password prompt used by ssh is, however, currently hardcoded into sshpass.