User Tools

Site Tools


atmos:linux:passwordfree_ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
atmos:linux:passwordfree_ssh [2023/10/18 21:10] deleneatmos:linux:passwordfree_ssh [2023/10/18 21:14] (current) delene
Line 8: Line 8:
  
 Here are the steps: Here are the steps:
-  - On your local Linux computer (for example aircraft.atmos.und.edu), open a terminal, and type: ssh-keygen -t ed25519 -C "delene@aero.und.edu" to generated two key in ~/.ssha +  - On your local Linux computer (for example aircraft.atmos.und.edu), open a terminal, and type: ssh-keygen -t ed25519 -C "delene@aero.und.edu" to generated two key in ~/.ssh. Where you need to replace "delene@aero.und.edu" with your email address. 
-  - You will get a prompt asking you where to save the key, defaultsTake the default option by hitting "Enter"+  - You will get a prompt asking you where to save the key. The default is given within (). Press enter key to use the default.
   - You will get another prompt to enter a pass phrase, leave it blank by hitting "Enter"   - You will get another prompt to enter a pass phrase, leave it blank by hitting "Enter"
-  - The passkey is generated, you should have two files in /home/username/.ssh/: id_rsa, id_rsa.pub +  - The passkey is generated, you should have two files in /home/username/.ssh/ 
-  - Use a text editor (e.g. vi) to open the file "id_rsa.pub", and copy the entire string, starting with "ssh-rsa ..."+  - Use a text editor (e.g. vi) to open the public key file, *pub
 +  - opy the entire string, starting with "ssh- ..."
   - Now log in to your remote Linux machine. To navigate to your "~/.ssh/" directory, type: .ssh   - Now log in to your remote Linux machine. To navigate to your "~/.ssh/" directory, type: .ssh
   - You should see a file named "authorized_keys", change the file's permission by entering: chmod 600 authorized_keys. If you don't have a file named "authorized_keys", type: gvim authorized_keys. This will create the file for you. This assumes that when you ssh-ed into the remote location, you typed "ssh -Y remoteLocation". The -Y allows you to use graphical interfaces.   - You should see a file named "authorized_keys", change the file's permission by entering: chmod 600 authorized_keys. If you don't have a file named "authorized_keys", type: gvim authorized_keys. This will create the file for you. This assumes that when you ssh-ed into the remote location, you typed "ssh -Y remoteLocation". The -Y allows you to use graphical interfaces.
atmos/linux/passwordfree_ssh.1697663417.txt.gz · Last modified: 2023/10/18 21:10 by delene