SSH

Allow client to ssh into server with cert instead of password

On the client machine:

~/.ssh/config should contain something like this

Host myhost
  HostName myhost.com
  User me
  IdentityFile ~/.ssh/id_rsa (or whatever your is called)

Then

ssh-keygen

Press Enter on password prompt twice to create a passwordless cert (not recommended, but fine for hobby use).

Then copy your public key to the server:

ssh-copy-id pi@freebsd.local

Nó need to log into the server if you already know the password.

Now you can ssh in and won´t be prompted for password (You may have to enter password the first time).

list remote directory contents

ssh user@host ls -l /some/directory
Proxy Information
Original URL
gemini://nuacht.flounder.online/gemlog/2022-09-21-ssh.gmi
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
689.02793 milliseconds
Gemini-to-HTML Time
0.237659 milliseconds

This content has been proxied by September (ba2dc).