Difference between revisions of "Generating SSH KEY pairs"

From rbachwiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:


  ssh -i ~/.ssh/mykey 192.168.20.1
  ssh -i ~/.ssh/mykey 192.168.20.1
<div class="keywords">
ssh with key
</div>

Latest revision as of 18:32, 31 August 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 with key

ssh -i ~/.ssh/mykey 192.168.20.1

ssh with key