Pages

Showing posts with label ssh. Show all posts
Showing posts with label ssh. Show all posts

How to setup an SSH Key and connect to ubuntu server

  1. Create SSH Key using
    ssh-keygen

  2. Copy .pub key to server
    ssh-copy-id username@remote_host

  3. Validate previous steps by connecting to server
    ssh username@remote_host

  4. disable password authentication
  5. enable firewall