Overview
Netcatty supports multiple authentication methods for SSH connections: password authentication, SSH key authentication, and certificate-based authentication. This guide covers configuration, best practices, and troubleshooting.Authentication Methods
Authentication method for this host
Password Authentication
The simplest authentication method using username and password.Configuration
User password for authentication
Whether to save the password securely
Example
UI Workflow
- Open Host Details panel
- Select Authentication Method: Password
- Enter your Password
- Toggle Save Password (enabled by default)
- Click Save
Password Not Saved
If you disable “Save Password”, Netcatty will prompt for the password each time you connect:SSH Key Authentication
Secure, password-less authentication using public-key cryptography.Configuration
Reference to an SSH key stored in the Keychain
Example
UI Workflow
-
Generate or Import Key (see Keychain Management)
- Navigate to Keychain in the sidebar
- Click Generate or Import
- Save your key with a descriptive label
-
Attach Key to Host
- Open Host Details panel
- Select Authentication Method: Key
- Choose your key from the Identity File dropdown
- Click Save
-
Export Public Key to Server (if not already done)
- In Keychain, click on your key
- Click Export to Host
- Select the target host
- Netcatty will automatically append to
~/.ssh/authorized_keys
Key Types Supported
- ED25519 (Recommended)
- RSA
- ECDSA
Modern, fast, and secure elliptic curve algorithm.Advantages:
- Strongest security
- Small key size
- Fast operations
Passphrase Protection
Passphrase to decrypt the private key
Whether to save the passphrase securely
- Netcatty will prompt for the passphrase on first use
- Enable Save Passphrase to avoid repeated prompts
- The passphrase is stored securely in your system’s credential manager
Certificate Authentication
Use SSH certificates for advanced security and centralized key management.Configuration
SSH certificate content
Example
UI Workflow
- Navigate to Keychain
- Click Import
- Paste your Private Key
- Paste your Certificate in the Certificate field
- Click Save
- Attach to host in Host Details > Authentication
SSH certificates are signed by a Certificate Authority (CA). The remote server must trust the CA’s public key.
SSH Agent Forwarding
Forward your local SSH agent to remote servers for seamless multi-hop authentication.Enable SSH agent forwarding
Use Cases
- Access Git repositories from remote servers using your local keys
- Jump between servers without copying keys
- Deploy applications that require SSH authentication
Configuration
UI Workflow
- Open Host Details panel
- Navigate to Advanced section
- Enable SSH Agent Forwarding toggle
- Click Save
Windows SSH Agent
On Windows, Netcatty checks if the SSH Agent service is running:- Service Not Running: You’ll see a warning with instructions
- To Enable:
macOS/Linux SSH Agent
The SSH agent usually runs automatically. To verify:Identity Management
Identities combine username and authentication method for reuse across multiple hosts.Identity Structure
Reference to a reusable identity in the Keychain
Creating an Identity
- Navigate to Keychain
- Switch to Identities tab
- Click New Identity
- Configure:
- Label: “Production Deploy”
- Username: deploy
- Auth Method: Key
- SSH Key: Select from dropdown
- Click Save
Using an Identity
- Username is inherited from the identity
- Authentication method is inherited
- Credentials are inherited
Authentication Priority
When multiple authentication methods are configured, Netcatty follows this priority:- Identity-based auth (if
identityIdis set) - Direct key auth (if
identityFileIdis set) - Password auth (if
passwordis set) - Prompt for password (if
savePasswordis false)
Troubleshooting
Connection Refused / Permission Denied
Connection Refused / Permission Denied
Possible Causes:
- Incorrect username or password
- SSH key not authorized on server
- Wrong authentication method selected
- Verify username and hostname
- Check
~/.ssh/authorized_keyson the server - Ensure your public key is present
- Try password authentication to verify connectivity
Passphrase Prompt Every Time
Passphrase Prompt Every Time
Cause: SSH key passphrase is not savedSolution:
- Open Keychain
- Click on your key
- Enable Save Passphrase
- Enter passphrase once
Agent Forwarding Not Working
Agent Forwarding Not Working
Possible Causes:Server Side:
Edit Restart SSH service:
- SSH agent not running locally
- Server doesn’t allow agent forwarding
/etc/ssh/sshd_config:Certificate Authentication Fails
Certificate Authentication Fails
Possible Causes:Verify the server trusts the CA:
- Certificate expired
- CA not trusted by server
- Certificate principals don’t match
Security Best Practices
Protect Private Keys
- Use passphrases on all private keys
- Store keys securely (avoid shared/cloud drives)
- Rotate keys regularly
Use Short-Lived Certificates
For team environments, prefer SSH certificates with 24-48 hour validity.
Related Resources
Keychain Management
Generate, import, and manage SSH keys
Host Configuration
Advanced host settings and environment variables
Proxy & Jump Hosts
Configure bastion hosts and multi-hop connections
