ssh-copy-id: Import ssh-copy-id-8.0.1 as wip/ssh-copy-id

ssh-copy-id is a script that uses ssh(1) to log into a remote machine.

It is extracted from OpenSSH package.
This commit is contained in:
Iku Iwasa 2019-11-16 16:54:49 +09:00
parent 05df510c2e
commit cf96692402
4 changed files with 42 additions and 0 deletions

View File

@ -4573,6 +4573,7 @@ SUBDIR+= srecord
SUBDIR+= srvx
SUBDIR+= sselp
SUBDIR+= ssh-chat
SUBDIR+= ssh-copy-id
SUBDIR+= ssid
SUBDIR+= ssu
SUBDIR+= st-term-git

12
ssh-copy-id/DESCR Normal file
View File

@ -0,0 +1,12 @@
ssh-copy-id is a script that uses ssh(1) to log into a remote machine
(presumably using a login password, so password authentication should be
enabled, unless you've done some clever use of multiple identities). It
assembles a list of one or more fingerprints (as described below) and tries
to log in with each key, to see if any of them are already installed (of
course, if you are not using ssh-agent(1) this may result in you being
repeatedly prompted for pass-phrases). It then assembles a list of those
that failed to log in, and using ssh, enables logins with those keys on the
remote server. By default it adds the keys by appending them to the remote
user's ~/.ssh/authorized_keys (creating the file, and directory, if
necessary). It is also capable of detecting if the remote system is a
NetScreen, and using its 'set ssh pka-dsa key ...' command instead.

26
ssh-copy-id/Makefile Normal file
View File

@ -0,0 +1,26 @@
# $NetBSD$
DISTNAME= openssh-8.0p1
PKGNAME= ssh-copy-id-${DISTNAME:S/openssh-//:S/p1/.1/}
CATEGORIES= security
MAINTAINER= iku.iwasa@gmail.com
HOMEPAGE= http://www.openssh.com/
COMMENT= Use locally available keys to authorise logins on a remote machine
LICENSE= modified-bsd
PATCHDIR= ${.CURDIR}/../../security/openssh/patches
DISTINFO_FILE= ${.CURDIR}/../../security/openssh/distinfo
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
USE_LANGUAGES= # none
NO_BUILD= yes
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/contrib/ssh-copy-id \
${DESTDIR}${PREFIX}/bin/ssh-copy-id
${INSTALL_MAN} ${WRKSRC}/contrib/ssh-copy-id.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ssh-copy-id.1
.include "../../mk/bsd.pkg.mk"

3
ssh-copy-id/PLIST Normal file
View File

@ -0,0 +1,3 @@
@comment $NetBSD$
bin/ssh-copy-id
man/man1/ssh-copy-id.1