Skip to content

Instantly share code, notes, and snippets.

@eagleyed
Created June 26, 2020 17:13
Show Gist options
  • Select an option

  • Save eagleyed/15edca9778c4aee72b7678da4639e95e to your computer and use it in GitHub Desktop.

Select an option

Save eagleyed/15edca9778c4aee72b7678da4639e95e to your computer and use it in GitHub Desktop.

Revisions

  1. Rituparna sonowal created this gist Jun 26, 2020.
    11 changes: 11 additions & 0 deletions ssh-digital-ocean
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    Generate the key: ssh-keygen

    Point to the directory with your key pair
    cd ~/.ssh

    locate the pub key for ssh
    ssh-copy-id -i [key_name].pub USERNAME@SERVERT_IP

    Then

    ssh username@serverip