homebrew-core/Formula/ssh-copy-id.rb
2016-10-11 03:39:13 -07:00

22 lines
699 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.3p1.tar.gz"
mirror "https://www.mirrorservice.org/pub/OpenBSD/OpenSSH/portable/openssh-7.3p1.tar.gz"
version "7.3p1"
sha256 "3ffb989a6dcaa69594c3b550d4855a5a2e1718ccdde7f5e36387b424220fbecc"
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