Update the ssh key post for consistency with system hardening.

This commit is contained in:
2025-11-13 20:45:26 -07:00
parent 5e167e8403
commit 99827e7328

View File

@@ -1,13 +1,16 @@
--- ---
title: "SSH Key Access" title: "SSH Key Access"
author: "Hyperling" author: "Hyperling"
date: "2025-11-13" date: 2025-11-13T20:00:00-07:00
tags: tags:
- "tech" - "tech"
- networking
- linux
- ssh
categories: categories:
- "guide" - "guides"
series: series:
- "server administration" - "sysadmin"
--- ---
How to set up an SSH key and use it to access a remote machine. How to set up an SSH key and use it to access a remote machine.
@@ -35,7 +38,7 @@ ssh-copy-id -p 2222 leethaxor@pwnnoobs.pro
Now you should be able to log in or copy files without needing to type a password. Now you should be able to log in or copy files without needing to type a password.
``` ``` bash
ssh [-p port_nbr] username@server_or_IP ssh [-p port_nbr] username@server_or_IP
scp [-P port_nbr] username@server_or_IP:file_to_pull local_path_to_save scp [-P port_nbr] username@server_or_IP:file_to_pull local_path_to_save
scp [-P port_nbr] local_path_to_send username@server_or_IP:remote_path_to_save scp [-P port_nbr] local_path_to_send username@server_or_IP:remote_path_to_save