Unable to remote install NVWB on Ubuntu24.04 from WSL workstation

remote system: workstation with Ubuntu 24.04/ SSH service activated and SSH key setup
local machine : workstation with Win11/WSL2

was able to ssh to remote, copy files across, etc…
but when ran the commands below to remote install nvwb

mkdir -p $HOME/.nvwb/bin && \
curl -L https://workbench.download.nvidia.com/stable/workbench-cli/$(curl -L -s https://workbench.download.nvidia.com/stable/workbench-cli/LATEST)/nvwb-cli-$(uname)-$(uname -m) --output $HOME/.nvwb/bin/nvwb-cli && \
chmod +x $HOME/.nvwb/bin/nvwb-cli && \
sudo -E $HOME/.nvwb/bin/nvwb-cli install

it errors out with the following ERROR:

“Failed to open file /home/hijer/.nvwb/bin/nvwb-cli: Permission Denied” … “curl(23) failure writing output to destination”

This is a curl cmd issue swap wget cmd for curl and make sure git is installed before the installation. [quote=“raed_hijer, post:1, topic:306366”]

sudo apt install git
mkdir -p $HOME/.nvwb/bin && \
wget  https://workbench.download.nvidia.com/stable/workbench-cli/$(curl -L -s https://workbench.download.nvidia.com/stable/workbench-cli/LATEST)/nvwb-cli-$(uname)-$(uname -m)  -O $HOME/.nvwb/bin/nvwb-cli && \
chmod +x $HOME/.nvwb/bin/nvwb-cli && \
sudo -E $HOME/.nvwb/bin/nvwb-cli install

[/quote]