Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
ssh-ca
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
ssh-ca
Commits
bb7dda78
Commit
bb7dda78
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
sshd test case now works reliably\!
parent
2e4f5a9b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+2
-1
2 additions, 1 deletion
.gitignore
Makefile
+14
-4
14 additions, 4 deletions
Makefile
sshd_config
+0
-14
0 additions, 14 deletions
sshd_config
with
16 additions
and
19 deletions
.gitignore
+
2
−
1
View file @
bb7dda78
...
...
@@ -5,5 +5,6 @@
CA*
users/
hosts/
.server
.pid
sshd
.pid
known_hosts
sshd_config
This diff is collapsed.
Click to expand it.
Makefile
+
14
−
4
View file @
bb7dda78
.PHONY
:
install clean test
sshd_config
:
@
echo
"ListenAddress 127.0.0.1:22222"
>
sshd_config
@
echo
"HostKey
$$
PWD/hosts/localhost"
>>
sshd_config
@
echo
"TrustedUserCAKeys
$$
PWD/CA.pub"
>>
sshd_config
@
echo
"HostCertificate
$$
PWD/hosts/localhost-cert.pub"
>>
sshd_config
@
echo
"PidFile sshd.pid"
>>
sshd_config
@
echo
"UsePrivilegeSeparation no"
>>
sshd_config
install
:
cp
ssl-ca /usr/local/bin/ssh-ca
chmod
755 /usr/local/bin/ssh-ca
clean
:
rm
-rf
CA CA.pub
users
hosts known_hosts
rm
-rf
CA CA.pub
users
hosts known_hosts
sshd.pid sshd_config
test
:
clean
test
:
clean
sshd_config
./ssh-ca init
./ssh-ca newuser
$$
USER
./ssh-ca newhost localhost
echo
"@cert-authority *
$$(
cat CA.pub
)
"
>
known_hosts
$$(
which sshd
)
-dddf
sshd_config
#ssh -F ssh_config test
$$(
which sshd
)
-f
sshd_config
test
"
$$(
ssh -F ssh_config test whoami
)
"
=
"
$$
USER"
kill
$$(
cat
sshd.pid
)
This diff is collapsed.
Click to expand it.
sshd_config
deleted
100644 → 0
+
0
−
14
View file @
2e4f5a9b
ListenAddress 127.0.0.1:22222
HostKey hosts/localhost
TrustedUserCAKeys ssh_ca.pub
HostCertificate hosts/localhost-cert.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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment