Changes between Initial Version and Version 1 of cypress/ssh_public-key_authentication

11/08/22 19:14:08 (18 months ago)


  • cypress/ssh_public-key_authentication

    v1 v1  
     1= Set up SSH public-key authentication =
     3Using SSH public-key authentication to connect to a remote system is a robust, more secure alternative to logging in with an account password.
     5See if you have public-key generated.
     8local:~ user$ ls ~/.ssh
     9config id_rsa known_hosts
     14***.pub is your public-key. If you don't have it,
     16local:~ user$ ssh-keygen -t rsa
     19You will be prompted to supply a filename (for saving the key pair) and a passphrase (for protecting your private key):
     21Filename: To accept the default filename (and location) for your key pair, press Enter or Return without entering a filename.
     22Password: If you press Enter or Return without entering a passphrase, your private key will be generated without password-protection.
     24SCP to copy the public key file (e.g., ~/.ssh/ to your account on the remote system (e.g.,;
     26 local:~ user$ scp ~/.ssh/
     28Don't forget ':' 
     29You'll be prompted for your account password. Your public key will be copied to your home directory (and saved with the same filename) on the remote system.
     34Log into Cypress using your account username and password.
     36local:~ user$ ssh
     39You must have "" on your home directory
     42[user@cypress ~ $] ls
     46On the remote system, add the contents of your public key file (e.g., ~/ to a new line in your ~/.ssh/authorized_keys file; on the command line, enter:
     48 [user@cypress ~ $] cat ~/ >> ~/.ssh/authorized_keys
     51You may now safely delete the public key file (e.g., ~/ on Cypress; on the command line, enter:
     54  rm ~/
     56Now you should be able to login Cypress without typing password from next time.