v1
This commit is contained in:
commit
8d4915543e
132 files changed
+20628
No files matched your search
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
# ssh reads ~/.ssh from the passwd entry, not $HOME, so the key and ssh config
|
||||
# live in /home/tester for every test; tests isolate netssh via HOME/XDG_*.
|
||||
set -eu
|
||||
mkdir -p /home/tester/.ssh
|
||||
if [ -f /keys/id_ed25519 ]; then
|
||||
install -m 600 /keys/id_ed25519 /home/tester/.ssh/id_ed25519
|
||||
fi
|
||||
cat >/home/tester/.ssh/config <<'EOF'
|
||||
Host *
|
||||
IdentityFile ~/.ssh/id_ed25519
|
||||
IdentitiesOnly yes
|
||||
BatchMode yes
|
||||
ConnectTimeout 5
|
||||
StrictHostKeyChecking accept-new
|
||||
LogLevel ERROR
|
||||
EOF
|
||||
chmod 700 /home/tester/.ssh
|
||||
chmod 600 /home/tester/.ssh/config
|
||||
exec "$@"
|
||||
Reference in new issue
Block a user