SSH.NET icon indicating copy to clipboard operation
SSH.NET copied to clipboard

Build failure of developer branch

Open imapangolin opened this issue 9 years ago • 11 comments

Trying to see if dev build will resolve "no suitable authentication" exception.

Getting the errors in the attachment. VS2015.

screen shot 2017-03-17 at 10 43 26 am

imapangolin avatar Mar 17 '17 14:03 imapangolin

The specific issue I am trying to resolve is the exception "No suitable authentication method found to complete authentication". The server is Firefox SFTP - not under my control. Any idea what I could use to make this work?

Connect code is:

     using (var client = new SftpClient(ServerName, Convert.ToInt32(Port), UserID, Password))
        {
            client.Connect();

         //   client.BufferSize = 4 * 1024;
            using (Stream file1 = File.OpenWrite(ClientFileName))
            {
                client.DownloadFile(ServerFileName, file1);
            }
        }

imapangolin avatar Mar 17 '17 17:03 imapangolin

Could it uses keyboard interactive, do not see any code for handling the event in your snippet

Sent from my iPhone

On Mar 17, 2017, at 1:37 PM, imapangolin [email protected] wrote:

The specific issue I am trying to resolve is the exception "No suitable authentication method found to complete authentication". The server is Firefox SFTP - not under my control. Any idea what I could use to make this work?

Connect code is:

 using (var client = new SftpClient(ServerName, Convert.ToInt32(Port), UserID, Password))
    {
        client.Connect();

     //   client.BufferSize = 4 * 1024;
        using (Stream file1 = File.OpenWrite(ClientFileName))
        {
            client.DownloadFile(ServerFileName, file1);
        }
    }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

darkoperator avatar Mar 17 '17 18:03 darkoperator

What’s keyboard interactive?

On Mar 17, 2017, at 2:22 PM, Carlos Perez [email protected] wrote:

Could it uses keyboard interactive, do not see any code for handling the event in your snippet

Sent from my iPhone

On Mar 17, 2017, at 1:37 PM, imapangolin [email protected] wrote:

The specific issue I am trying to resolve is the exception "No suitable authentication method found to complete authentication". The server is Firefox SFTP - not under my control. Any idea what I could use to make this work?

Connect code is:

using (var client = new SftpClient(ServerName, Convert.ToInt32(Port), UserID, Password)) { client.Connect();

// client.BufferSize = 4 * 1024; using (Stream file1 = File.OpenWrite(ClientFileName)) { client.DownloadFile(ServerFileName, file1); } } — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sshnet/SSH.NET/issues/198#issuecomment-287433834, or mute the thread https://github.com/notifications/unsubscribe-auth/ADQXsV02-oFI0skDw2AfUSNaPkh-r3Msks5rms9ygaJpZM4Mgr1N.

imapangolin avatar Mar 17 '17 18:03 imapangolin

I do doubt this - as this is for an unattended process.

On Mar 17, 2017, at 2:22 PM, Carlos Perez [email protected] wrote:

Could it uses keyboard interactive, do not see any code for handling the event in your snippet

Sent from my iPhone

On Mar 17, 2017, at 1:37 PM, imapangolin [email protected] wrote:

The specific issue I am trying to resolve is the exception "No suitable authentication method found to complete authentication". The server is Firefox SFTP - not under my control. Any idea what I could use to make this work?

Connect code is:

using (var client = new SftpClient(ServerName, Convert.ToInt32(Port), UserID, Password)) { client.Connect();

// client.BufferSize = 4 * 1024; using (Stream file1 = File.OpenWrite(ClientFileName)) { client.DownloadFile(ServerFileName, file1); } } — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sshnet/SSH.NET/issues/198#issuecomment-287433834, or mute the thread https://github.com/notifications/unsubscribe-auth/ADQXsV02-oFI0skDw2AfUSNaPkh-r3Msks5rms9ygaJpZM4Mgr1N.

imapangolin avatar Mar 17 '17 18:03 imapangolin

It is an auth method where credentials are handled by a PAM on the host. I got the same error when that method is enabled on the server. You can see how I handle that auth method in Posh-SSH https://github.com/darkoperator/Posh-SSH/blob/master/PoshSSH/PoshSSH/NewSessionBase.cs

Sent from my iPhone

On Mar 17, 2017, at 2:59 PM, imapangolin [email protected] wrote:

I do doubt this - as this is for an unattended process.

On Mar 17, 2017, at 2:22 PM, Carlos Perez [email protected] wrote:

Could it uses keyboard interactive, do not see any code for handling the event in your snippet

Sent from my iPhone

On Mar 17, 2017, at 1:37 PM, imapangolin [email protected] wrote:

The specific issue I am trying to resolve is the exception "No suitable authentication method found to complete authentication". The server is Firefox SFTP - not under my control. Any idea what I could use to make this work?

Connect code is:

using (var client = new SftpClient(ServerName, Convert.ToInt32(Port), UserID, Password)) { client.Connect();

// client.BufferSize = 4 * 1024; using (Stream file1 = File.OpenWrite(ClientFileName)) { client.DownloadFile(ServerFileName, file1); } } — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sshnet/SSH.NET/issues/198#issuecomment-287433834, or mute the thread https://github.com/notifications/unsubscribe-auth/ADQXsV02-oFI0skDw2AfUSNaPkh-r3Msks5rms9ygaJpZM4Mgr1N.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

darkoperator avatar Mar 17 '17 19:03 darkoperator

It is an auth method on the server it does not affect if you are doing it interactively or unattended

Sent from my iPhone

On Mar 17, 2017, at 2:59 PM, imapangolin [email protected] wrote:

I do doubt this - as this is for an unattended process.

On Mar 17, 2017, at 2:22 PM, Carlos Perez [email protected] wrote:

Could it uses keyboard interactive, do not see any code for handling the event in your snippet

Sent from my iPhone

On Mar 17, 2017, at 1:37 PM, imapangolin [email protected] wrote:

The specific issue I am trying to resolve is the exception "No suitable authentication method found to complete authentication". The server is Firefox SFTP - not under my control. Any idea what I could use to make this work?

Connect code is:

using (var client = new SftpClient(ServerName, Convert.ToInt32(Port), UserID, Password)) { client.Connect();

// client.BufferSize = 4 * 1024; using (Stream file1 = File.OpenWrite(ClientFileName)) { client.DownloadFile(ServerFileName, file1); } } — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sshnet/SSH.NET/issues/198#issuecomment-287433834, or mute the thread https://github.com/notifications/unsubscribe-auth/ADQXsV02-oFI0skDw2AfUSNaPkh-r3Msks5rms9ygaJpZM4Mgr1N.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

darkoperator avatar Mar 17 '17 19:03 darkoperator

I clearly didn’t know what I was talking about as far as the keyboard interactive. Coding for that does indeed cure my connection problem and I thank you.

The issue of the developer build failing, however, does remain.

Thanks again

On Mar 17, 2017, at 2:22 PM, Carlos Perez [email protected] wrote:

Could it uses keyboard interactive, do not see any code for handling the event in your snippet

Sent from my iPhone

On Mar 17, 2017, at 1:37 PM, imapangolin [email protected] wrote:

The specific issue I am trying to resolve is the exception "No suitable authentication method found to complete authentication". The server is Firefox SFTP - not under my control. Any idea what I could use to make this work?

Connect code is:

using (var client = new SftpClient(ServerName, Convert.ToInt32(Port), UserID, Password)) { client.Connect();

// client.BufferSize = 4 * 1024; using (Stream file1 = File.OpenWrite(ClientFileName)) { client.DownloadFile(ServerFileName, file1); } } — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sshnet/SSH.NET/issues/198#issuecomment-287433834, or mute the thread https://github.com/notifications/unsubscribe-auth/ADQXsV02-oFI0skDw2AfUSNaPkh-r3Msks5rms9ygaJpZM4Mgr1N.

imapangolin avatar Mar 17 '17 19:03 imapangolin

No clue on the build, I tend to stick with release versions. Happy it helped

Sent from my iPhone

On Mar 17, 2017, at 3:28 PM, imapangolin [email protected] wrote:

I clearly didn’t know what I was talking about as far as the keyboard interactive. Coding for that does indeed cure my connection problem and I thank you.

The issue of the developer build failing, however, does remain.

Thanks again

On Mar 17, 2017, at 2:22 PM, Carlos Perez [email protected] wrote:

Could it uses keyboard interactive, do not see any code for handling the event in your snippet

Sent from my iPhone

On Mar 17, 2017, at 1:37 PM, imapangolin [email protected] wrote:

The specific issue I am trying to resolve is the exception "No suitable authentication method found to complete authentication". The server is Firefox SFTP - not under my control. Any idea what I could use to make this work?

Connect code is:

using (var client = new SftpClient(ServerName, Convert.ToInt32(Port), UserID, Password)) { client.Connect();

// client.BufferSize = 4 * 1024; using (Stream file1 = File.OpenWrite(ClientFileName)) { client.DownloadFile(ServerFileName, file1); } } — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sshnet/SSH.NET/issues/198#issuecomment-287433834, or mute the thread https://github.com/notifications/unsubscribe-auth/ADQXsV02-oFI0skDw2AfUSNaPkh-r3Msks5rms9ygaJpZM4Mgr1N.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

darkoperator avatar Mar 17 '17 19:03 darkoperator

The build failure is due to recent changes by @olegkap, which we will probably (at least temporarily) revert.

drieseng avatar Mar 18 '17 16:03 drieseng

Thanks - can you let me know please when the dev build is buildable?

On Mar 18, 2017, at 12:26 PM, Gert Driesen [email protected] wrote:

The build failure is due to recent changes by @olegkap https://github.com/olegkap, which we will probably (at least temporarily) revert.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sshnet/SSH.NET/issues/198#issuecomment-287557101, or mute the thread https://github.com/notifications/unsubscribe-auth/ADQXsUhxiPQlqA6K9UQVj02A9rHGAytvks5rnAW2gaJpZM4Mgr1N.

imapangolin avatar Mar 19 '17 12:03 imapangolin

Build is now fixed.

drieseng avatar Mar 19 '17 16:03 drieseng