homebrew-core/Formula/ssh-copy-id.rb
Chongyu Zhu a87b9e6d4d
ssh-copy-id 7.8p1
Closes #31436.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2018-08-25 00:53:47 +08:00

21 lines
691 B
Ruby

class SshCopyId < Formula
desc "Add a public key to a remote machine's authorized_keys file"
homepage "https://www.openssh.com/"
url "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.8p1.tar.gz"
mirror "https://mirror.vdms.io/pub/OpenBSD/OpenSSH/portable/openssh-7.8p1.tar.gz"
version "7.8p1"
sha256 "1a484bb15152c183bb2514e112aa30dd34138c3cfb032eee5490a66c507144ca"
head "https://github.com/openssh/openssh-portable.git"
bottle :unneeded
def install
bin.install "contrib/ssh-copy-id"
man1.install "contrib/ssh-copy-id.1"
end
test do
output = shell_output("#{bin}/ssh-copy-id -h 2>&1", 1)
assert_match "identity_file", output
end
end