Topic: Setting up Pro Package with SSH key rather than an access token??
I am trying to hide my access token (used to install
mdb-react-ui-kit pro version) from showing up in github via package.json ... Thus, I am trying to set up with SSH so that the repo URL does not require an access token in my package.json ..
I generated a new ed_25519 key to
$HOME/.ssh/private/ed_25519 but when verifying if I can connect, I get "failed to add the host to the list of known hosts".. See below the steps I took and the error I received..
ssh-keygen -t ed25519 -f $HOME/.ssh/private/ed_25519 ( I did not add a passphrase ) cat ~/.ssh/id_ed25519.pub | clip ( I paste the clipped contents into a new SSH Key in Gitlab ) ssh-keyscan -H git.mdbootstrap.com ssh -T email@example.com
Error Message on Git Bash
# GitLab.com Host gitlab.com PreferredAuthentications publickey IdentityFile ~/.ssh/private/id_ed25519.pub # Private GitLab instance Host gitlab.company.com PreferredAuthentications publickey IdentityFile ~/.ssh/private/id_ed25519.pub
** Desired Outcome ** I want to be able to have the following line in my package.json .. will this work with Github actions?
I checked it at myself. Steps I took:
- I have created a new folder
- I ran
npm initand created a basic configuration.
- I ran
npm i firstname.lastname@example.org:mdb/react/mdb5/prd/mdb5-react-ui-kit-pro-essential.git
I had no errors in the console and in node modules I can see that the package has downloaded correctly
Did you just try to execute the command
npm i email@example.com:mdb/react/mdb5/prd/mdb5-react-ui-kit-pro-essential.git?
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Premium
- Premium support: Yes
- Technology: General Bootstrap questions
- MDB Version: -
- Device: Surface Laptop Studio
- Browser: Chrome
- OS: Windows 11
- Provided sample code: No
- Provided link: No