gssapi

Skipping Kerberos authentication prompts with JSch [duplicate]

孤人 提交于 2019-11-26 20:56:29
This question already has an answer here: SFTP connection through Java asking for weird authentication 2 answers I am using the Connect() method in the Ssh Java class below in order to connect to a server using SSH (JSch) and running a command in the server. The problem is that when running Connect() the server prompts the next messages: Kerberos username [********]: Kerberos password for ********: And in order to continue running I need to manually press the Enter key twice, one for the user name and one for the password. I have tried to add the next code: // Press ENTER Robot r = new Robot()

Skipping Kerberos authentication prompts with JSch [duplicate]

坚强是说给别人听的谎言 提交于 2019-11-26 08:29:49
问题 This question already has answers here : SFTP connection through Java asking for weird authentication (2 answers) Closed 2 years ago . I am using the Connect() method in the Ssh Java class below in order to connect to a server using SSH (JSch) and running a command in the server. The problem is that when running Connect() the server prompts the next messages: Kerberos username [********]: Kerberos password for ********: And in order to continue running I need to manually press the Enter key