¿Es posible trabajar en FTP normal (no SFTP) en Renci SSH.NET? - ¿Qué cliente usar?
Estoy usando Renci SSH.NET, pero intento probar en un FTP (no en un sitio SFTP).
Lo hice funcionar con WinSCP, pero no puedo hacer que funcione en Renci. WinSCP me permite configurar el protocolo en FTP o SFTP. Creo que este es el problema. Se me solicita
No se encontró un método de autenticación adecuado para completar la autenticación (clave pública, teclado interactivo).
¿Cómo desactivo SFTP (y solo uso FTP) en Renci SSH.NET? Lo intenté
Dim c As Renci.SshNet.SftpClient / ScpClient/ BaseClient / NetConfClient
aquí está el código:
Private Sub LancerUpload()
Dim PWAuthMeth = New PasswordAuthenticationMethod(Login, Password)
Dim KIAuthMeth = New KeyboardInteractiveAuthenticationMethod(Login)
AddHandler KIAuthMeth.AuthenticationPrompt, AddressOf HandleKeyEvent
Dim ConnectionInfo As New ConnectionInfo(ServerName, 22, Login, PWAuthMeth, KIAuthMeth)
Dim SshClient1 As New SshClient(ConnectionInfo)
Try
SshClient1.Connect()
Catch ex As Exception
MsgBox(ex.ToString())
End Try
MsgBox(SshClient1.IsConnected)
End Sub
Private Sub HandleKeyEvent(sender As Object, e As Renci.SshNet.Common.AuthenticationPromptEventArgs)
For Each prompt As Renci.SshNet.Common.AuthenticationPrompt In e.Prompts
If prompt.Request.IndexOf("Password:", StringComparison.InvariantCultureIgnoreCase) <> -1 Then
prompt.Response = Password
End If
Next
End Sub