Skip to content

Netsons Setup

SSH Access

1. Generate an SSH Key Pair

Terminal window
ssh-keygen -t ed25519 -C "deploy@your-domain.com"

This creates:

  • ~/.ssh/id_ed25519 — private key (keep secret)
  • ~/.ssh/id_ed25519.pub — public key (upload to server)

2. Upload to Netsons cPanel

  1. Log in to your Netsons cPanel
  2. Go to Security > SSH Access
  3. Click Manage SSH Keys > Import Key
  4. Paste the contents of your public key
  5. Click Import
  6. Go back and click Manage next to the key
  7. Click Authorize

3. Test the connection

Terminal window
ssh -p 65100 your-user@your-server.netsons.com

4. Get the Known Hosts entry

Terminal window
ssh-keyscan -p 65100 your-server.netsons.com

Save the output — you’ll need it for the SSH_KNOWN_HOSTS GitHub secret.

FTP Access

FTP credentials are typically the same as your cPanel login:

SettingValue
Hostyour-server.netsons.com
Port21
UsernameYour cPanel username
PasswordYour cPanel password

You can also create a dedicated FTP account in cPanel > Files > FTP Accounts.

PHP Version

Check available versions

Terminal window
ssh -p 65100 user@server "ls /usr/local/bin/ea-php*"

Common paths:

  • /usr/local/bin/ea-php82
  • /usr/local/bin/ea-php83
  • /usr/local/bin/ea-php84

Set PHP version in cPanel

  1. Go to Software > MultiPHP Manager
  2. Select your domain
  3. Choose the desired PHP version
  4. Click Apply

Composer

Composer is typically at /opt/cpanel/composer/bin/composer. Always invoke it with the correct PHP binary:

Terminal window
/usr/local/bin/ea-php84 /opt/cpanel/composer/bin/composer --version

Git (SSD 30+ Plans)

Check if git is available:

Terminal window
ssh -p 65100 user@server "git --version"

Git is available on SSD 30+ plans. Lower plans must use the FTP strategy.