It might be useful to summarize some information on this topic. You have a user name on your host of which your debug tools run (presumably nsight eclipse is your debug tool)…there is a user name nsight logs in as when it talks to the Jetson…probably “ubuntu”. On the Jetson some commands require running as root…implying running under user “ubuntu”, but with “sudo” to assume root privileges.
If the command fails on the host, this would be a matter of host side configuration…likely you can ignore this, it’s only after reaching the Jetson that the command is rejected. I think login succeeded, but the command issued was denied (it is important to know what command or nsight action was denied).
Was nsight set up to access user ubuntu? Can you manually ssh to user ubuntu on the command line? If so, then it isn’t an issue of getting to that user for basic use.
Once you are logged in to that user, if you were to manually do what nsight is trying to do, can you succeed on the ssh command line to do this? Does manual command line execution require sudo? Probably.
Now if the command you are running is intended to provide a graphical display, then you have two more sets of permissions to worry about. The first is that you have to have the DISPLAY environment variable set to where you want the window to display, and if not set up correctly, this might give permission denied. The second is that if you do remote display, then the graphical part of the program is actually offloaded to the machine doing the display…e.g., if running OpenGL then the OpenGL libs on the machine actually doing the display have to be executable by your user on that machine…overall there are a lot of complicated details of how permissions might fail.
Please post as much information as possible about about whether manual ssh usage works; add what you can about what commands are being run and where any GUI application might need to be displayed, e.g., run on Jetson but displayed on host (you might not be able to test everything, but however much you can verify will help). Right now there simply isn’t enough information to zero in on which permission the system is talking about. All of the above possibilities are a bit overwhelming…this is why more information is needed.