Tidy files
Former-commit-id: 3ad18d4bae036b9c55576f4c8b726a32a4e30c76
This commit is contained in:
10
autostart.py
Normal file
10
autostart.py
Normal file
@ -0,0 +1,10 @@
|
||||
from getpass import getpass
|
||||
from subprocess import Popen
|
||||
|
||||
cmd=input("SSH: ").split()
|
||||
pwd=getpass()
|
||||
port=cmd[2]
|
||||
ip=cmd[3].replace("root@",f"root:{pwd}@")
|
||||
print(ip,port)
|
||||
Popen(fr'"C:\Program Files (x86)\NetSarang\Xshell 7\Xshell.exe" ssh://{ip}:{port}')
|
||||
ssh=Popen(f"ssh -CNg -L 6006:127.0.0.1:6006 -p {port} {cmd[3]}")
|
Reference in New Issue
Block a user