commit bcb1f70187fd0c574b8611e314e1332d0fa9e011 parent c597ba4fece7aed93480ade3a4b8e53acbf6aa2c Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Sun, 7 Jun 2020 17:58:47 +0200 Remove unused code Diffstat:
M | .local/bin/ssh-copy-id | | | 4 | ---- |
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/.local/bin/ssh-copy-id b/.local/bin/ssh-copy-id @@ -1,6 +1,5 @@ #!/bin/sh pubkeyfile="${HOME}/.ssh/id_rsa.pub" -#authkeyfile="${HOME}/.ssh/authorized_keys" usage() { printf 'usage: %s [USER@]HOST ..\n' "${0##*/}" >&2 @@ -13,9 +12,6 @@ die() { } copy_key() { - # seen in Solene Rapenne's drist - #ssh_params=-o"ControlMaster=auto"" "-o"ControlPath=/tmp/sshid_ssh_%h_%p_%r.sock"" "-o"ControlPersist=1m" - #ssh $ssh_params "${HOME}" "printf '%s\n' $(cat "$pubkeyfile") >> $authkeyfile" if ! ssh "$1" "mkdir -p \$HOME/.ssh && echo $(cat "$pubkeyfile") >> \$HOME/.ssh/authorized_keys"; then die "ssh key transfer failed" fi