Skipping Kerberos authentication prompts with JSch [duplicate]
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()