Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python paramiko check ssh connection

#best way is to surround the connection with a try/catch, and set a 
#timeout for the attempted connection:
client.connect(ip,port,username,pwd,timeout=1.5)#timeout is a float
 
PREVIOUS NEXT
Tagged: #python #paramiko #check #ssh #connection
ADD COMMENT
Topic
Name
7+5 =