How do I connect to a server using SSH key?

How do I connect to a server using SSH key?
Answer
Upload Your Public Key
  1. To use ssh-copy-id , pass your username and the IP address of the server you would like to access: ssh-copy-id
    [email protected]
  2. You’ll see output like the following, and a prompt to enter your user’s password: …
  3. Verify that you can log in to the server with your key.
 

Tìm kiếm

Back
Top