0% found this document useful (0 votes)
5 views3 pages

SSH Key Commands

The document details a series of commands executed in a terminal related to SSH key management. It shows the listing of SSH keys, starting the SSH agent, adding an SSH key, and authenticating with GitHub. The user successfully added their ED25519 key and confirmed their identity on GitHub after accepting the host's authenticity.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

SSH Key Commands

The document details a series of commands executed in a terminal related to SSH key management. It shows the listing of SSH keys, starting the SSH agent, adding an SSH key, and authenticating with GitHub. The user successfully added their ED25519 key and confirmed their identity on GitHub after accepting the host's authenticity.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

$ ls --al ~/.

ssh
ls: ambiguous option -- al

Try 'ls --help' for more information.

Akash@LAPTOP-MR5E1LMD MINGW64 ~

$ ls -al ~/.ssh
Output: total 30

drwxr-xr-x 1 Akash 197121 0 Mar 11 11:36 ./

drwxr-xr-x 1 Akash 197121 0 Mar 11 11:35 ../

-rw-r--r-- 1 Akash 197121 419 Mar 11 11:42 id_ed25519

-rw-r--r-- 1 Akash 197121 106 Mar 11 11:42 id_ed25519.pub

Akash@LAPTOP-MR5E1LMD MINGW64 ~

$ start ssh-agent

Akash@LAPTOP-MR5E1LMD MINGW64 ~

$ eval $(ssh-agent -s)


Output: Agent pid 598

Akash@LAPTOP-MR5E1LMD MINGW64 ~

$ ssh-add ~/.ssh/id_rsa
Output: /c/Users/Akash/.ssh/id_rsa: No such file or directory

Akash@LAPTOP-MR5E1LMD MINGW64 ~

$ ssh-add ~/.ssh/id_ed25519
Output: Identity added: /c/Users/Akash/.ssh/id_ed25519 (writesindhukr@[Link])

Akash@LAPTOP-MR5E1LMD MINGW64 ~

$ clip<~/.ssh/id_e
Akash@LAPTOP-MR5E1LMD MINGW64 ~

$ ls -al ~/.ssh
Output: total 30

drwxr-xr-x 1 Akash 197121 0 Mar 11 11:36 ./

drwxr-xr-x 1 Akash 197121 0 Mar 11 11:35 ../

-rw-r--r-- 1 Akash 197121 419 Mar 11 11:42 id_ed25519

-rw-r--r-- 1 Akash 197121 106 Mar 11 11:42 id_ed25519.pub

Akash@LAPTOP-MR5E1LMD MINGW64 ~

$ start ssh-agent

Akash@LAPTOP-MR5E1LMD MINGW64 ~

$ eval $(ssh-agent -s)


Output : Agent pid 598

Akash@LAPTOP-MR5E1LMD MINGW64 ~

$ ssh-add ~/.ssh/id_rsa
Output:

/c/Users/Akash/.ssh/id_rsa: No such file or directory

Akash@LAPTOP-MR5E1LMD MINGW64 ~

$ ssh-add ~/.ssh/id_ed25519
Output: Identity added: /c/Users/Akash/.ssh/id_ed25519 (writesindhukr@[Link])

Akash@LAPTOP-MR5E1LMD MINGW64 ~

$ clip<~/.ssh/id_ed25519
Akash@LAPTOP-MR5E1LMD MINGW64 ~

$ clip<~/.ssh/id_ed25519.pub

Akash@LAPTOP-MR5E1LMD MINGW64 ~

$ clip<~/.ssh/id_ed25519.pub
Akash@LAPTOP-MR5E1LMD MINGW64 ~

$ ssh -T git@[Link]
Output: The authenticity of host '[Link] ([Link])' can't be established.

ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.

This key is not known by any other names.

Are you sure you want to continue connecting (yes/no/[fingerprint])? Y

Please type 'yes', 'no' or the fingerprint: yes

Warning: Permanently added '[Link]' (ED25519) to the list of known hosts.

Hi sindhurai28! You've successfully authenticated, but GitHub does not provide shell access.

You might also like