tis-openssh-server icon

OpenSSH Server

Silent install package for OpenSSH Server

0-1

  • package: tis-openssh-server
  • name: OpenSSH Server
  • version: 0-1
  • categories: System
  • maintainer: Ingrid TALBOT,Tranquil IT
  • locale: all
  • target_os: macos
  • architecture: all
  • signature_date:
  • size: 5.11 Ko

package           : tis-openssh-server
version           : 0-1
architecture      : all
section           : base
priority          : optional
name              : OpenSSH Server
categories        : System
maintainer        : Ingrid TALBOT,Tranquil IT
description       : OpenSSH Server. For MacOs, full-disk-access is required for enabling SSH, you can do it as indicated in apple support "https://support.apple.com/en-us/101653" and grant full-disk-access to "wapt-get".
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : macos
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 08e035cb-2433-4656-9676-041744b0e725
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 9420721210f5d9c50c9e35c9fdbf0a088b30e165df8311c5f2176ce60e122475
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-11-30T16:00:13.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : FoWpAX91p1+l3SIa45UzUZZM3iJK4HKTxDbRl5wz+G4aAp+pLjieYGmFMVh14cyTJIS0ZMEe5gxIVc7Z5yP/gEC4UxipoQUwI41lbiJpwVQqYMlniDzP97abttNNf7AcBZtexm6D1KNd91l4SO15g2/c3SakSx0Ufx03QidAhilUrUh5esgqmJNsVcgpkN+2JX+MWyRdiFgFQM5GHEGWaTysE56o7l6tZMbTs381FylOhSTeW/ynoq6noWVsg7AKP+3eG3cRrZ19gwWfDzopDGnH1LPcWe0DiEbjbQKJKIugt/xJSyT0xiC3X3zOUr9dYE55k9ymkmiqDJJpwy3R7w==

# -*- coding: utf-8 -*-
from setuphelpers import *

def get_ssh_status():
    # Return True if enabled, False if disabled
    status = run(r'systemsetup -getremotelogin')
    if r'Remote Login: On' in status:
        return True
    else:
        return False

def install():
    print(r'Enabling SSH service...')
    if not get_ssh_status():
        ret = run(r'systemsetup -setremotelogin on')
        if ret != r'':
            print(r'Error enabling SSH service, see reason below.')
            error(ret)
        else:
            if get_ssh_status():
                print(r'SSH service successfully enabled.')
            else:
                error(r'SSH service not enabled.')
    else:
        print(r'SSH service already enabled.')

def uninstall():
    if get_ssh_status():
        ret = run(r'systemsetup -f -setremotelogin off')
        if get_ssh_status():
            print(r'Error disabling SSH service, see reason below.')
            error(ret)
        else:
            print(r'SSH service successfully disabled.')
    else:
        print(r'SSH service already disabled.')

def audit():
    if not get_ssh_status():
        print(r'SSH service not enabled')
        return "WARNING"
    else:
        print(r'SSH service enabled.')
        return "OK"

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
abfa2e726bc8c7b7ce680e8a86dcf60ae9601e4c6ac79d522116c136550a8a2e : WAPT/control
9420721210f5d9c50c9e35c9fdbf0a088b30e165df8311c5f2176ce60e122475 : WAPT/icon.png
ba9b46446acd23445859bd3a1f4ad502f353466607a89851d275f7d385322f4d : luti.json
7e587eb8c7d4b281e8d24c30d453410e1bfd400d71d965229622cffe052cb4cb : setup.py