Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 661 Bytes

ssh-keys.md

File metadata and controls

29 lines (26 loc) · 661 Bytes

Create SSH key locally and install in remote machine

  1. On client, navigate to the ssh folder.
    cd ~/.ssh
    
  2. Generate a key pair, public and private. Make sure to specify a unique name to allow ids for connecting to multiple devices.
    ssh-keygen
    
  3. Add the key to the ssh agent, so it is used when attempting to connect.
    ssh-add ~/.ssh/key-file-name
    
  4. Copy to the target server.
    ssh-copy-id username@remote-host
    
  5. Verify by trying to connect to the remote host.
    ssh user@remote-host -i ~/.ssh/key-file-name
    

Reference

# List keys known by ssh-agent
ssh-add -l
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy