diff options
author | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-06-07 07:04:44 +0000 |
---|---|---|
committer | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-06-07 07:04:44 +0000 |
commit | d1e86b499a00b9183c83caa667697b39c68641a0 (patch) | |
tree | 64fe4a171a5c96c0e6a401b113911695772681a2 /package/openssh/files | |
parent | 4522cad486daa0f0e87da291885d9d970ebd8f1e (diff) |
add openssh package, sshd does not work. why?
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1165 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/openssh/files')
-rwxr-xr-x | package/openssh/files/S50sshd | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/package/openssh/files/S50sshd b/package/openssh/files/S50sshd new file mode 100755 index 000000000..bb2369195 --- /dev/null +++ b/package/openssh/files/S50sshd @@ -0,0 +1,15 @@ +#!/bin/sh + +for type in rsa dsa; do { + # check for keys + key=/etc/ssh/ssh_${type}_host_key + [ ! -f $key ] && { + # generate missing keys + [ -x /usr/bin/ssh-keygen ] && { + /usr/bin/ssh-keygen -N '' -t $type -f $key 2>&- >&- && exec $0 $* + } & + exit 0 + } +}; done + +/usr/sbin/sshd |