Kristijan
05/02/2025, 1:20 PMsudo 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:
#
# ~/.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]\$ '
erictgrubaugh
05/02/2025, 3:53 PMKristijan
05/02/2025, 3:58 PMerictgrubaugh
05/02/2025, 4:22 PMKristijan
05/02/2025, 4:23 PMerictgrubaugh
05/02/2025, 4:23 PMKristijan
05/02/2025, 4:23 PMKristijan
05/02/2025, 4:23 PMerictgrubaugh
05/02/2025, 4:28 PMcd ~/.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
cd <projectDirectory>
sc account:setup:ci --account <accountId> --authid <authId> --certificateid <certificateId> --privatekeypath ~/.ssh/<privateKeyName>.pem
erictgrubaugh
05/02/2025, 4:29 PM.bashrc
or set any ENV varsKristijan
05/02/2025, 4:30 PMerictgrubaugh
05/02/2025, 4:30 PMerictgrubaugh
05/02/2025, 4:31 PMerictgrubaugh
05/02/2025, 4:31 PMerictgrubaugh
05/02/2025, 4:39 PMKristijan
05/02/2025, 5:39 PM