tool i made cuz i got tired of manually copying ssh keys to servers every time
- connects to remote server with password
- injects your public key into authorized_keys
works on linux haven't tested on other operating systems
# just build it
go build .
# or use make
make
# build
make build-alljust run it and follow the menu
./ssh-inject
- inject ssh key (the main thing)
- generate new keypair if you dont have one
- view your public key
- test if key auth is working
- go 1.21+ to build
if windows target doesnt work check if openssh is actually installed on the remote. also admin users have different authorized_keys location (C:\ProgramData\ssh\administrators_authorized_keys) but i didnt implement that yet
do whatever you want with it idc