Why do I receive permission denied error while connecting to Spark labs?
What's happening
When you try to establish a connection with Spark labs, a "Permission denied" error is displayed.
Why it's happening
Your SSH connection is not using the right private key to authenticate with the Spark labs.
How to fix it
Ensure the following to resolve the issue.
- The extension settings use the correct SSH private and public key pairs (PrivateKeyPath and PublicKeyPath).
- Use the same public key in the Settings page and in the Create Spark Lab window.
- Add an entry to your SSH configuration under ~/.ssh/config. Specify
<port_number>and~/.ssh/id_rsain the following configuration.Host cpdenv HostName localhost Port <port_number> # Same port as spark-labs.localPort IdentityFile ~/.ssh/id_rsa # Path to your private key