File: 01makekeyprintkey

package info (click to toggle)
tinyssh 20190101-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,188 kB
  • sloc: ansic: 11,914; sh: 1,005; python: 385; makefile: 18
file content (23 lines) | stat: -rwxr-xr-x 460 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# 20180109
# Jan Mojzis
# Public domain.

set -e

#change directory to $AUTOPKGTEST_TMP
cd "${AUTOPKGTEST_TMP}"

#we need tools from /usr/sbin
PATH="/usr/sbin:/sbin:${PATH}"
export PATH

#check tinysshd-makekey and tinysshd-printkey
#note that: tinysshd-printkey prints on stderr -> 'allow stderr' in control
rm -rf keydir
tinysshd-makekey keydir
tinysshd-printkey keydir
rm -rf keydir

echo "tinysshd-makekey and tinysshd-printkey works" >&2
exit 0