aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-07-03 17:01:07 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-03 17:01:07 +0200
commitadbf65602df982d5efb8c6f5776f4310c819e5c6 (patch)
treeda3da084907b5c4c58806984e8edb26ee3a951ea /example
parentde60a74dc0db25e097538240a1fda613ed17246f (diff)
downloadsocket_wrapper-adbf65602df982d5efb8c6f5776f4310c819e5c6.tar.gz
socket_wrapper-adbf65602df982d5efb8c6f5776f4310c819e5c6.tar.xz
socket_wrapper-adbf65602df982d5efb8c6f5776f4310c819e5c6.zip
example: Don't use ecdsa keys they are not available everywhere.
Diffstat (limited to 'example')
-rwxr-xr-xexample/openssh.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/example/openssh.sh b/example/openssh.sh
index 7bf3350..bb74f03 100755
--- a/example/openssh.sh
+++ b/example/openssh.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-SSH_DIRECTORY=$(mktemp -d)
+SSH_DIRECTORY=$(mktemp -d /tmp/tmp.swrap.XXXXXXXX)
SERVER_ADDRESS="127.0.0.10"
mkdir ${SSH_DIRECTORY}/swrap
@@ -27,8 +27,8 @@ echo Generating ${SSH_DIRECTORY}/ssh_host_dsa_key.
ssh-keygen -t dsa -f ${SSH_DIRECTORY}/ssh_host_dsa_key -N '' 2>/dev/null
echo Generating ${SSH_DIRECTORY}/ssh_host_rsa_key.
ssh-keygen -t rsa -b 2048 -f ${SSH_DIRECTORY}/ssh_host_rsa_key -N '' 2>/dev/null
-echo Generating ${SSH_DIRECTORY}/ssh_host_ecdsa_key.
-ssh-keygen -t ecdsa -b 256 -f ${SSH_DIRECTORY}/ssh_host_ecdsa_key -N '' 2>/dev/null
+#echo Generating ${SSH_DIRECTORY}/ssh_host_ecdsa_key.
+#ssh-keygen -t ecdsa -b 256 -f ${SSH_DIRECTORY}/ssh_host_ecdsa_key -N '' 2>/dev/null
# Create sshd_config file
cat > ${SSH_DIRECTORY}/sshd_config << EOT
@@ -37,7 +37,7 @@ ListenAddress ${SERVER_ADDRESS}
HostKey ${SSH_DIRECTORY}/ssh_host_key
HostKey ${SSH_DIRECTORY}/ssh_host_rsa_key
HostKey ${SSH_DIRECTORY}/ssh_host_dsa_key
-HostKey ${SSH_DIRECTORY}/ssh_host_ecdsa_key
+#HostKey ${SSH_DIRECTORY}/ssh_host_ecdsa_key
Subsystem sftp /usr/lib/ssh/sftp-server
LogLevel DEBUG1