I used this docker image:securecompliance/gvm:21.4.3-v1-data-full,and changed its SSH configuration,
Then use the Xshell tool ,and successfully establish a connection with the ssh service in the GVM container,
Then I wrote below python script and also established a SSH connection with the remote GVM container, but got error gvm.errors.GvmError: Remote closed the connection
connection = SSHConnection(hostname='192.168.90.233', username='my_ssh_username', password='my_ssh_password', port=1022)
transform = EtreeCheckCommandTransform()
with Gmp(connection) as gmp:
response = gmp.authenticate("myGSAacount", "myGSApassword")
# print(response)