SSH Access

Connect to your server securely

Connecting to Your VPS

SSH (Secure Shell) is the primary method for accessing your VPS. All connections are encrypted and secure.

Basic Connection

ssh trader@your-vps-ip

Using SSH Keys (Recommended)

ssh -i ~/.ssh/your-key trader@your-vps-ip

SSH Config File

For convenience, add your VPS to your SSH config file (~/.ssh/config):

Host polymarket-vps
    HostName your-vps-ip
    User trader
    IdentityFile ~/.ssh/your-key
    
# Then connect with:
ssh polymarket-vps

SFTP File Transfer

Transfer files to and from your VPS:

# Upload a file
scp local-file.py trader@your-vps-ip:~/

# Download a file
scp trader@your-vps-ip:~/remote-file.py ./

# Interactive SFTP session
sftp trader@your-vps-ip

Port Forwarding

Access services running on your VPS locally:

# Forward local port 8080 to VPS port 8080
ssh -L 8080:localhost:8080 trader@your-vps-ip

# Now access http://localhost:8080 in your browser

Security Best Practices

  • Always use SSH keys instead of passwords
  • Keep your private key secure and never share it
  • Use a strong passphrase for your SSH key
  • Regularly rotate your SSH keys
  • Disable password authentication after setting up keys