我有要执行的命令:有三个选项,在某些情况下我得到它们,有些则没有:"sudo ssh -L 80:localhost:80 -f -N [email protected]"
詹金斯用户的密码:
"[sudo] password for jenkins:"
对以下问题的回答是“是或否”:
" The authenticity of host '10.19.34.11 (10.19.34.11)' can't be established. ECDSA key fingerprint is SHA256:96RyrUn7+VMF78YamjgCYYDwD0bzYDaMwHP4YFuQF4Q. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '10.19.34.11' (ECDSA) to the list of known hosts. ############################################################################ WARNING: This system is for the use of authorized clients only. Individuals using the computer network system without authorization, or in excess of their authorization, are subject to having all their activity on this computer network system monitored and recorded by the system personnel. To protect the computer network system from unauthorized use and to ensure the computer network systems is functioning properly, system administrators monitor this system. Anyone using this computer network system expressly consents to such monitoring and is advised that if such monitoring reveals possible conduct of criminal activity, system personnel may provide the evidence of such activity to law enforcement officers. ############################################################################ "
远程机器的密码:
"Password:"
在某些情况下,我只需要写第一、第二和第三。一些情况:第一和第三。其他一些案例仅排在第三位。
您能建议使用命令行或 shell 脚本来处理不同的可选输入/输出吗?