deepsourcestatus / test-repository

Audit the use of ssh.InsecureIgnoreHostKey function GSC-G106
Security
Minor
2 months agoa year old
Use of ssh InsecureIgnoreHostKey should be audited
42	config := ssh.ClientConfig{
43		User:            user,
44		Auth:            auths,
45		HostKeyCallback: ssh.InsecureIgnoreHostKey(),46	}
47
48	addr := fmt.Sprintf("%s:%d", host, port)