我正在尝试通过以下命令从本地主机连接到远程主机。但是,远程主机上有一个设置,即在我们登录后不久,它会提示输入徽章ID、密码和登录原因,因为在remote-host
的profile
文件中编码了这样的操作。如何克服这些步骤并直接无需交互式登录,而不干扰profile
中的代码。
jsmith@local-host$ ssh -t -t generic_userID@remote-host
Enter your badgeID, < exit > to abort:
Enter your password for <badgeID> :
Enter a one line justification for your interactive login to generic_userID