-
Notifications
You must be signed in to change notification settings - Fork 0
/
SSH-Manager-v1.0.py
35 lines (29 loc) · 983 Bytes
/
SSH-Manager-v1.0.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import os
from colorama import Back, Fore, Style
# Version: 1.0
def main():
os.system("figlet SSH-Manager")
print(Fore.MAGENTA + "Author: MikeTheHash - https://github.com/MikeTheHash")
print(Style.RESET_ALL)
print("1: Start SSH server \n2: Status of SSH server \n3: Stop SSH server \n4: Connect to an SSH server \n5: Clear \n6: Exit")
iusr = input("Select an option >")
if iusr == "1":
os.system("service ssh start")
print("SSH server started!")
if iusr == "2":
os.system("service ssh status")
if iusr == "3":
os.system("service ssh stop")
print("SSH server stopped")
if iusr == "4":
iusr2 = input("Type the login-username >")
iusr3 = input("Type the IP-Adress >")
os.system(f"ssh {iusr2}@{iusr3}")
if iusr == "5":
os.system("clear")
os.system("figlet SSH-Manager-v1.0")
print("1: Start SSH server \n2: Status of SSH server \n3: Stop SSH server \n4: Connect to an SSH server \n5: Clear \n6: Exit")
if iusr == "6":
exit()
while(True):
main()