Hi, I've just installed Arch Linux and want to use...
# suitescript
k
Hi, I've just installed Arch Linux and want to use it for NS Development. I'm having trouble adding an account to a project:
sudo suitecloud account:setup:ci --account=XXX --authid=XXX --certificateid=XXX --privatekeypath=XXX
I'm getting: Machine-to-machine authentication is not allowed for the current execution context. For more information, see https://system.netsuite.com/app/help/helpcenter.nl?fid=article_0113125121.html. My .bashrc:
Copy code
#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

#export SUITECLOUD_FALLBACK_PASSKEY=1234567890asdfgzxcvbgfdsaQAZWSXEDCRFVTGBBBBBBBX1234
export SUITECLOUD_CI_PASSKEY=1234567890asdfgzxcvbgfdsaQAZWSXEDCRFVTGBBBBBBBX1234
export SUITECLOUD_CI=1

alias ls='ls --color=auto'
alias grep='grep --color=auto'
PS1='[\u@\h \W]\$ '
e
Is Machine-to-Machine enabled in your Integration record? I use Arch, BTW
k
yes, and it works on windows, both in webstorm and vscode. here, it doesnt work on both console and webstorm with the same error
e
FWIW I haven't had to mess with environment variables or any of that in my setup
k
and u use arch unironically?
e
Yes
k
maybe its the folder? my projects are in Documents/...
idk
e
Just now I set up a new M2M key for an existing SDF project, following this process: 1. In my Arch bash shell, create a new RSA key (I cannot get EC keys to work):
Copy code
cd ~/.ssh
openssl req -new -x509 -newkey rsa:4096 -keyout <privateKeyName>.pem -sigopt rsa_padding_mode:pss -sha256 -sigopt rsa_pss_saltlen:64 -out <publicKeyName>.pem -nodes -days 365
2. In NetSuite, create a new OAuth 2 record under
Setup > Integration > M2M Setup
, using the Public Key I just generated 3. Back in Arch bash
Copy code
cd <projectDirectory>
sc account:setup:ci --account <accountId> --authid <authId> --certificateid <certificateId> --privatekeypath ~/.ssh/<privateKeyName>.pem
Didn't need to touch
.bashrc
or set any ENV vars
k
i did this as well but ill try again i guess
e
image.png
^ results after aforementioned process
I'm not sure what the error message you're getting means unfortunately
I do use WebStorm, but it's on my Windows side and I don't use SDF from there
k
deepseek saved me, apparently i had to install without sudo. thank you very much for taking the time bro, appreciate it.