CodeFrog
Server Management & File Operations
← Back to CodeFrog

Server Management & File Operations

CodeFrog provides comprehensive SSH server management and SFTP file operations, allowing you to connect to remote servers, monitor system resources, and manage files seamlessly. This feature is essential for remote development workflows, server administration, and managing projects hosted on cloud servers.

Overview

Server Management & File Operations enables you to:

Accessing Server Management

Access: Welcome screen → Manage Servers or Navigation → Servers

You can access server management from:

Setting Up SSH Connections

Creating a New Server Connection

  1. Open Server Management: Navigate to Servers in the navigation menu
  2. Add Server: Click “Add Server” or “New Connection”
  3. Configure Connection:
    • Server Name: A descriptive name for this server (e.g., “Production Web Server”)
    • Hostname or IP: The server’s hostname or IP address
    • Port: SSH port (default: 22)
    • Username: Your SSH username
    • Authentication Method: Choose SSH key or password
  4. SSH Key Setup (Recommended):
    • Generate a new RSA 4096-bit key in CodeFrog, or
    • Import an existing private key
    • CodeFrog can automatically inject your public key to new servers during setup
  5. Test Connection: Verify the connection works before saving
  6. Save Connection: Store the connection for future use

SSH Key Management

For secure and convenient connections, SSH key-based authentication is recommended:

Generating a New SSH Key

  1. In CodeFrog Settings: Navigate to SSH key management
  2. Generate Key: Click “Generate New Key”
  3. Key Type: RSA 4096-bit (recommended for security)
  4. Save Private Key: CodeFrog securely stores your private key
  5. Copy Public Key: Copy the public key to add to your server

Adding Public Key to Server

  1. On Your Server: Log in via SSH or console
  2. Create .ssh Directory (if it doesn’t exist):
    mkdir -p ~/.ssh
    chmod 700 ~/.ssh
    
  3. Add Public Key: Append your public key to ~/.ssh/authorized_keys:
    echo "your-public-key-here" >> ~/.ssh/authorized_keys
    chmod 600 ~/.ssh/authorized_keys
    
  4. Verify Permissions: Ensure correct permissions on authorized_keys

Importing Existing SSH Keys

  1. In CodeFrog Settings: Navigate to SSH key management
  2. Import Key: Click “Import Existing Key”
  3. Select Private Key File: Choose your private key file (usually ~/.ssh/id_rsa)
  4. Enter Passphrase: If your key is encrypted, enter the passphrase
  5. Save: CodeFrog securely stores your imported key

Password Authentication

Password authentication is also supported but is less secure:

Server Monitoring

Real-Time Resource Monitoring

CodeFrog provides real-time monitoring of server resources:

Monitoring Features

Server Health

Monitor overall server health:

File Operations (SFTP)

CodeFrog provides comprehensive SFTP file management capabilities:

File Upload

Upload files and folders to remote servers:

File Download

Download files and folders from remote servers:

File Operations

Manage files and folders on remote servers:

File Browser

Browse remote file systems with a familiar interface:

Terminal Access

CodeFrog provides persistent terminal sessions for remote command execution:

Terminal Features

Use Cases

Connection Management

Connection Pooling

CodeFrog efficiently manages SSH connections:

Connection Health

Monitor and manage connection health:

Managing Connections

Remote Project Workflows

Server Management integrates with CodeFrog’s project system:

Creating Remote Projects

  1. New Project: Click “New Project” from Welcome screen
  2. Choose Connection Type: Select “SSH Connection”
  3. Select Server: Choose an existing server connection or create a new one
  4. Select Project Directory: Choose the remote project directory
  5. Create Project: CodeFrog creates the project and connects to the server

Working with Remote Projects

Once a remote project is created, you can:

See Project Workflows for detailed information on remote development.

Security Best Practices

SSH Key Security

Connection Security

File Transfer Security

Troubleshooting

Connection Issues

Problem: Cannot connect to remote server

Solutions:

Authentication Failures

Problem: SSH authentication fails

Solutions:

File Operation Issues

Problem: File operations fail or are slow

Solutions:

Terminal Not Working

Problem: Terminal sessions don’t work or disconnect

Solutions:

See platform-specific troubleshooting guides for more detailed troubleshooting guidance.

Use Cases

Development Workflows

Server Administration

File Management