Abstract: SSH (Secure shells) is an application layer security communication protocol, it provides the communication between the identity authentication, communication data encryption processing, data integrity verification for DuoZhong security service. This paper introduces the main contents of the agreement SSH, analyzes the SSH agreement of the most vulnerable to typical of the two kinds of attacks, and the two security hidden danger brings forward the corresponding preventive measures, so as to improve the safety of SSH help.