Skip to content

Commit

Permalink
CI update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-M committed Dec 30, 2019
1 parent 4f9d7ef commit e3ef5a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/embedded_server/openssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ def __init__(self, port=2222, server_key=SERVER_KEY, sshd_config=SSHD_CONFIG):

def _fix_masks(self):
_mask = int('0600') if sys.version_info <= (2,) else 0o600
dir_mask = int('0755') if sys.version_info <= (2,) else 0o755
dir_mask = int('0700') if sys.version_info <= (2,) else 0o700
os.chmod(self.server_key, _mask)
os.chmod(os.path.join(DIR_NAME,'authorized_keys'), _mask)
for _dir in [DIR_NAME, PDIR_NAME, PPDIR_NAME]:
os.chmod(_dir, dir_mask)

Expand Down Expand Up @@ -81,4 +82,3 @@ def __del__(self):
os.remove(self.sshd_config)
except:
pass
self.sshd_config
2 changes: 2 additions & 0 deletions tests/embedded_server/sshd_config.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ ListenAddress 127.0.0.1
AcceptEnv LANG LC_*
Subsystem sftp internal-sftp
AuthorizedKeysFile {{parent_dir}}/authorized_keys
PermitRootLogin yes

0 comments on commit e3ef5a1

Please sign in to comment.