Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Cyber Security
  3. Question
Cyber Security

What is the SSH key passphrase used for?

Asked by Anisha Dalal Mar 14, 2022 841 views 1 answer
Share

About this question

When using ssh-keygen:

What is the passphrase for?

Why is it optional?

What are the security implications of specifying (or not specifying) one?


Below is an excerpt taken from a shell session (some details may have been altered):


user@localhost:~$ ssh-keygen

Generating public/private rsa key pair.

Enter file in which to save the key (/user/.ssh/id_rsa):

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /user/.ssh/id_rsa.

Your public key has been saved in /user/.ssh/id_rsa.pub.

The key fingerprint is:

60:8b:50:1e:0f:bc:5a:2a:13:1e:83:2b:d9:95:38:9e user@localhost

The key's randomart image is:

+---[RSA 2048]----+
|   .+            |
|   o.+           |
|. ...o+          |
|ooo.=o o         |
|.*oB. . S        |
|*.E              |
|.o               |
|                 |
|                 |
+-----------------+

Your answer

1 Answer

More Cyber Security discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Cyber Security Blogs

Guides, tips and career advice on Cyber Security from JanBask experts.