Skip to content

V3rB0se/ssh-inject

Repository files navigation

ssh-inject

tool i made cuz i got tired of manually copying ssh keys to servers every time

what it does

  • connects to remote server with password
  • injects your public key into authorized_keys

works on linux haven't tested on other operating systems

build

# just build it
go build .

# or use make
make

# build 
make build-all

usage

just run it and follow the menu

./ssh-inject

features

  1. inject ssh key (the main thing)
  2. generate new keypair if you dont have one
  3. view your public key
  4. test if key auth is working

requirements

  • go 1.21+ to build

note to self

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

license

do whatever you want with it idc