Access Forbidden(ERROR 403) while downloading Jenkins CLI.jar

Hello KodeKloud Team,

I am following the instructions mentioned in the class and executing them simultaneously in my Ubuntu vdi. I am facing the below error while running the command:
sudhir560@jenkinstrng:~$ wget http://<my_vdi_ip>:8080/jnlpjars/jenkins-cli.jar
–2022-08-29 15:43:38-- http://<my_vdi_ip>:8080/jnlpjars/jenkins-cli.jar
Connecting to <my_vdi_ip>:8080… connected.
HTTP request sent, awaiting response… 403 Forbidden
2022-08-29 15:43:38 ERROR 403: Forbidden.

I added public Key in Jenkins portal, but still not able to proceed beyond the above step.
Could you please help?

Regards
Sudheer

Hi @sudhir560,

Thank you for your question !!!

Your issue is coming from the request URL jnlpJars is case sensitive you type it all lowercase the correct syntax is wget http://<my_vdi_ip>:8080/jnlpJars/jenkins-cli.jar

Another way to download it is directly on the UI
http://<my_vdi_ip>:8080/cli

Good DevOps learning journey

Thank you so much @mmkmou. Your suggestion worked.

1 Like