Skip to content

Linux SSH Command Guide

Published: at 12:00 PMSuggest Changes

Linux SSH Command Guide

Introduction

SSH (Secure Shell) is a protocol used to securely connect to remote servers and execute commands. It provides a secure channel over an unsecured network.

Usage

To connect to a remote server, use the following command:

ssh [user]@[hostname]

Common Options

Examples

  1. Connect to a remote server:

    ssh [email protected]
    
  2. Connect using a specific port:

    ssh -p 2222 [email protected]
    
  3. Connect using a specific private key:

    ssh -i /path/to/private_key [email protected]
    
  4. Enable verbose mode:

    ssh -v [email protected]
    

Previous Post
Linux SCP Command Guide
Next Post
Linux Tar Command Guide