Fix forwarding and ssh

This commit is contained in:
jld3103 2021-10-01 12:31:08 +02:00
parent f8d2faf571
commit a3ab240bcc
2 changed files with 7 additions and 3 deletions

6
ssh.py
View file

@ -4,8 +4,12 @@ from wrapper import check_programs_wrap
@click.command(name='ssh')
def cmd_ssh(cmd: list[str] = [], host: str = '172.16.42.1', user: str = 'kupfer', port: int = 22):
def cmd_ssh():
check_programs_wrap('ssh')
run_ssh_command()
def run_ssh_command(cmd: list[str] = [], host: str = '172.16.42.1', user: str = 'kupfer', port: int = 22):
return subprocess.run([
'ssh',
'-o',