The ssh install and ssh to commands #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After the first unit. Definition of done, from README.md:
keyfunc ssh install <[user@]host> [-- ssh options...]: runs the systemssh; on the host creates~/.ssh(0700) and~/.ssh/authorized_keys(0600) if missing, appends thepubline only if an identical line is absent, printsaddedoralready present. The key line reaches the remote script on standard input, not on the remote command line.keyfunc ssh to <host> [ssh arguments...]: serves the derived key from an in-process SSH agent on a unix socket in a new private 0700 temporary directory, runs the systemsshwith-o IdentityAgent=<socket>before the user's arguments, passes the exit status through, removes socket and directory on exit. The private key is never written to disk.sshon PATH that records what it was given (absent line appended once, present line left alone, modes set); the agent serves exactly one key and the socket directory is gone after exit.make checkgreen.Model: fable-5-1
Built on #8.
installsends the host a short shell script and gives it the key lineon the connection's standard input, so the line is never on a command
line there. The script makes
~/.sshandauthorized_keyswhen theyare missing, adds the line only when the same line is not already in
the file, and says which of the two it did.
toserves the key from an agent inside the tool on a unix socket in atemporary directory only its owner can enter, points
sshat it, handsback the status
sshended with, and takes socket and directory downon the way out. The key is never written to disk.
Model: opus-5