mirror of
https://github.com/romanz/amodem.git
synced 2026-04-18 20:25:59 +08:00
move everything to separate package
This commit is contained in:
2
agent
2
agent
@@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
python __main__.py $*
|
||||
python -m sshagent.trezor_agent $*
|
||||
|
||||
0
sshagent/__init__.py
Normal file
0
sshagent/__init__.py
Normal file
@@ -4,7 +4,7 @@ import logging
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
import trezor
|
||||
import agent
|
||||
import server
|
||||
|
||||
def main():
|
||||
fmt = '%(asctime)s %(levelname)-12s %(message)-100s [%(filename)s]'
|
||||
@@ -33,7 +33,7 @@ def main():
|
||||
signer = client.sign_ssh_challenge
|
||||
|
||||
try:
|
||||
agent.serve(key_files=key_files, command=args.command, signer=signer)
|
||||
server.serve(key_files=key_files, command=args.command, signer=signer)
|
||||
except KeyboardInterrupt:
|
||||
log.info('server stopped')
|
||||
except Exception as e:
|
||||
Reference in New Issue
Block a user