1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-03-19 21:04:35 +00:00

manage-password.py: fix default ssh port

This commit is contained in:
adrien 2013-06-17 09:40:31 +02:00
parent 2706ef3424
commit 25378c91b5

8
manage-password.py Normal file → Executable file
View file

@ -15,8 +15,8 @@ import tempfile
import time
import datetime
FILE_GPG = '/home/nishiki/.password-manager'
KEY = 'nishiki@yaegashi.fr'
FILE_GPG = '/home/adrien/.password-manager'
KEY = 'adrien.waksberg@believedigital.com'
FILE_PWD = '/tmp/.tmp_passwd'
TIMEOUT_PWD = 300
@ -144,6 +144,10 @@ class ManagePasswd:
login = result[i][self.LOGIN]
port = result[i][self.PORT]
passwd = result[i][self.PASSWD]
if not port:
port = 22
if passwd:
os.system('sshpass -p ' + passwd + ' ssh ' + login + '@' + server + ' -p ' + str(port))
else: