Difference between revisions of "Generating SSH KEY pairs"
Jump to navigation
Jump to search
(Created page with "=Creating SSH keys= ssh-keygen -t ed25519 -C "my-computer" ssh-copy-id -i ~/ssh/keyname.pub admin@server.com") |
|||
Line 1: | Line 1: | ||
=Creating SSH keys= | =Creating SSH keys= | ||
ssh-keygen -t ed25519 -C "my-computer" | ssh-keygen -t ed25519 -C "my-computer" | ||
'''Copy the public key to the server ''' | |||
ssh-copy-id -i ~/ssh/keyname.pub admin@server.com | ssh-copy-id -i ~/ssh/keyname.pub admin@server.com | ||
''' Connecting to the server using a specific key ''' | |||
ssh -i ~/.ssh/mykey 192.168.20.1 |
Revision as of 16:36, 19 April 2022
Creating SSH keys
ssh-keygen -t ed25519 -C "my-computer"
Copy the public key to the server
ssh-copy-id -i ~/ssh/keyname.pub admin@server.com
Connecting to the server using a specific key
ssh -i ~/.ssh/mykey 192.168.20.1