What is the key ? Which path we need to be put there
@codekru3 ай бұрын
The key here is the private key file used for authentication in the SSH connection. In the video, you'll notice a "codekru_youtube.pem" file located at the root of the project. I’ve referenced this key in the code with: ""System.getProperty("user.dir") + File.separator + codekru_youtube.pem"" , which is basically key's path (root of the project). Now, the key's location can be anything as long as you put the same path in the code.
@vedantzanjad3 ай бұрын
@@codekru i think this key file contains Like beginning private key Dhdudndnd Ending of private key Right?
@codekru3 ай бұрын
@@vedantzanjad Yeah, right!!!
@vedantzanjad3 ай бұрын
@@codekru still i am getting auth failed over there
@codekru3 ай бұрын
@@vedantzanjad, If you are getting this exception com.jcraft.jsch.JSchException: Auth fail at com.jcraft.jsch.Session.connect(Session.java:519) at com.jcraft.jsch.Session.connect(Session.java:183) then, it is mostly due to wrong key or username So, basically the user itself is not authenticated