Applied KMeans clustering algorithm to segregate different kind of attacks during a Secure Shell (SSH) session by making use of network packet files(pcap). It involved finding the best value of K and grouping similar files on the basis of cluster assignments. Used JAVA and WEKA tool.