Skip to content

Commit 20b2165

Browse files
author
Pan
committed
Updated embedded openssh server to clean up generated config. Updated config for internal sftp implementation, removal of deprecated config items.
Added closed flag to sftp handle plus check if file handle has already been closed on close/de-allocation. Updated tests for py3.
1 parent 696b753 commit 20b2165

File tree

5 files changed

+337
-263
lines changed

5 files changed

+337
-263
lines changed

embedded_server/openssh.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,4 @@ def stop(self):
6666

6767
def __del__(self):
6868
self.stop()
69+
os.unlink(SSHD_CONFIG)

embedded_server/sshd_config.tmpl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
Protocol 2
2-
UsePrivilegeSeparation no
32
UsePAM no
4-
RhostsRSAAuthentication no
5-
HostbasedAuthentication no
3+
HostbasedAuthentication yes
64
IgnoreUserKnownHosts yes
7-
GSSAPIAuthentication no
85
ListenAddress 127.0.0.1
9-
KeyRegenerationInterval 3600
10-
ServerKeyBits 1024
116

127
AcceptEnv LANG LC_*
13-
Subsystem sftp /usr/lib/openssh/sftp-server
8+
Subsystem sftp internal-sftp
149
AuthorizedKeysFile {{parent_dir}}/authorized_keys

0 commit comments

Comments
 (0)