From 297c4a8459445c9dde9e4a1e2a9ce38d16d5dab9 Mon Sep 17 00:00:00 2001 From: Ludwig Mey Date: Sun, 7 Dec 2025 14:21:14 +1300 Subject: [PATCH] Adding notes about ssh key generation 1 --- SSH/keygen.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/SSH/keygen.md b/SSH/keygen.md index 74df95b..bddc13c 100644 --- a/SSH/keygen.md +++ b/SSH/keygen.md @@ -8,7 +8,7 @@ On the new host ssh-keygen -t ecdsa ``` -you could add a -C for comment and then add your emaiul address but... meh +You could add a -C for comment and then add your emaiul address but... meh Example @@ -38,4 +38,16 @@ The key's randomart image is: +----[SHA256]-----+ ~$ -``` \ No newline at end of file +``` + +This will generate 2 keys in the .ssh folder + +``` +~/.ssh$ ls +id_ecdsa id_ecdsa.pub +~/.ssh$ +``` + +Use can then cat the .pub file to get the public keyu for that host, which can be added to the authorized_host file of other machines to gain access. + +You can also create an authorized_keys on your cost, and add other ssh pub key to allow them to have direct access to this host. \ No newline at end of file -- 2.49.1