Skip to content
Snippets Groups Projects
Commit 2e4f5a9b authored by nimrod's avatar nimrod
Browse files

More work on testing.

parent bd0499c8
No related branches found
No related tags found
No related merge requests found
...@@ -6,3 +6,4 @@ CA* ...@@ -6,3 +6,4 @@ CA*
users/ users/
hosts/ hosts/
.server.pid .server.pid
known_hosts
...@@ -5,10 +5,12 @@ install: ...@@ -5,10 +5,12 @@ install:
chmod 755 /usr/local/bin/ssh-ca chmod 755 /usr/local/bin/ssh-ca
clean: clean:
rm -rf CA CA.pub users hosts rm -rf CA CA.pub users hosts known_hosts
test: clean test: clean
./ssh-ca init ./ssh-ca init
./ssh-ca newuser $$USER ./ssh-ca newuser $$USER
./ssh-ca newhost localhost ./ssh-ca newhost localhost
echo "@cert-authority * $$(cat CA.pub)" > known_hosts
$$(which sshd) -dddf sshd_config $$(which sshd) -dddf sshd_config
#ssh -F ssh_config test
Host test
HostName localhost
Port 22222
IdentityFile users/%u
UserKnownHostsFile known_hosts
StrictHostKeyChecking yes
ListenAddress 127.0.0.1:22222 ListenAddress 127.0.0.1:22222
HostKey hosts/localhost HostKey hosts/localhost
TrustedUserCAKeys ssh_ca.pub TrustedUserCAKeys ssh_ca.pub
HostCertificate hosts/localhost.pub HostCertificate hosts/localhost-cert.pub
Banner "ssh-ca dummy test daemon" Banner "ssh-ca dummy test daemon"
PasswordAuthentication no PasswordAuthentication no
PermitRootLogin no PermitRootLogin no
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment