From bd0499c8700bd1203c6056d46e9956435720cd51 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Mon, 30 Nov 2015 09:48:07 +0200 Subject: [PATCH] WIP live server test case (not working). --- .gitignore | 1 + Makefile | 5 +++-- sshd_config | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 sshd_config diff --git a/.gitignore b/.gitignore index 4f2b5d7..15e5be1 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ CA* users/ hosts/ +.server.pid diff --git a/Makefile b/Makefile index 99bd3d8..ef07667 100644 --- a/Makefile +++ b/Makefile @@ -9,5 +9,6 @@ clean: test: clean ./ssh-ca init - ./ssh-ca newuser john - ./ssh-ca newhost www + ./ssh-ca newuser $$USER + ./ssh-ca newhost localhost + $$(which sshd) -dddf sshd_config diff --git a/sshd_config b/sshd_config new file mode 100644 index 0000000..9784d31 --- /dev/null +++ b/sshd_config @@ -0,0 +1,14 @@ +ListenAddress 127.0.0.1:22222 +HostKey hosts/localhost +TrustedUserCAKeys ssh_ca.pub +HostCertificate hosts/localhost.pub +Banner "ssh-ca dummy test daemon" +PasswordAuthentication no +PermitRootLogin no +PidFile .server.pid +StrictModes no +UsePrivilegeSeparation no +UsePAM no +RSAAuthentication yes +PubkeyAuthentication yes +Protocol 2 -- GitLab