Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

SSH Remote Keys

This document is used to show the detailed description of SSH Remote Keys Tuition.


(1) Mac/Linux User

Start: Launch your Terminal App.

enze@ENZE ~ % ssh-keygen

Choose a file path to save

Generating public/private rsa key pair.
Enter file in which to save the key (/Users/enze/.ssh/id_rsa): 

You may leave passphrase empty

Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /Users/enze/.ssh/id_rsa
Your public key has been saved in /Users/enze/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:mhMSesaBaXDF8+6ldwy6dUMDDR++JuSPNuKpFWCwX6Y enze@ENZE
The key's randomart image is:
+---[RSA 3072]----+
|. oo.   . .      |
| o =o    = .     |
|  = =oo o +      |
| . = B.o . .     |
|  . E.o S =      |
|   o ..=o* .     |
|     .*+=o+      |
|     o+*.oo.     |
|    ..+o .       |
+----[SHA256]-----+

Copy it to remote server (You need to type you server's log-in password here)

enze@ENZE .ssh % ssh-copy-id USER@HOST_NAME

Try to log in without key

enze@ENZE ~ % ssh exu03@bg1.cs.wm.edu
FQDN:  bg1.cs.wm.edu (128.239.2.100)

If you have any problems or questions please visit http://support.cs.wm.edu
   or email cs-support@wm.edu to open a support ticket - Thank you
Last login: Tue Feb 13 01:44:43 2024 from 70.160.198.18
exu03@bg1:~$ 

Success!


(2) Windows User

Start: Launch your Windows PowerShell App.

PS C:\Users\enze> .ssh % ssh-keygen

Choose a file path to save

Generating public/private rsa key pair.
Enter file in which to save the key (C:\Users\enze/.ssh/id_rsa):

You may leave passphrase empty

Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in C:\Users\enze/.ssh/id_rsa.
Your public key has been saved in C:\Users\enze/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:A+VqUFHSxr8Td6+tLKogTqyJqHxsFRacEHLZrYVv7VY enze@ENZEXUD44D
The key's randomart image is:
+---[RSA 3072]----+
| . +* B=o        |
|  o. B *+        |
|    . *.o.       |
|     = = .oE. .  |
|    . = S .+ . . |
|   . o   +o     .|
|  . = . .  .   o |
|o. O . .    ... .|
|=.= .   .... .o. |
+----[SHA256]-----+

Copy it to remote server (You need to type you server's log-in password here)

PS C:\Users\enze> cat ~/.ssh/id_rsa.pub | ssh USER@HOST_NAME "cat >> ~/.ssh/authorized_keys"

Try to log in without key

PS C:\Users\enze> ssh exu03@bg1.cs.wm.edu
FQDN:  bg1.cs.wm.edu (128.239.2.100)

If you have any problems or questions please visit http://support.cs.wm.edu
   or email cs-support@wm.edu to open a support ticket - Thank you
Last login: Tue Feb 13 01:22:46 2024 from 70.160.198.18
exu03@bg1:~$

Success!


About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors