This project is read-only.

Exception: User authentication method is not supported

Aug 1, 2011 at 4:04 PM



I try to use SS.NET insted of SharpSSH now. But when I try to connect with client = new SshClient(Host, User, Password); client.Connect();

 I always get an exception "User authentication method is not supported" thrown in Session.cs

if (!this._isAuthenticated)
                            //  Ensure that authentication method is allowed
                            if (!noneConnectionInfo.AllowedAuthentications.Contains(this.ConnectionInfo.Name))
                                throw new SshAuthenticationException("User authentication method is not supported.");

                            //  In future, if more then one authentication methods are supported perform the check here.
                            //  Authenticate using provided connection info object

                            this._isAuthenticated = this.ConnectionInfo.IsAuthenticated;
Target Host is a Mac, Host is an IP address "". Connection using SharpSSH works.
Best Regards
Aug 1, 2011 at 4:34 PM

Hi Oliver,


What SSH server/OS version do you use?

I would like to see if I can reproduce this problem here.




Aug 2, 2011 at 7:13 PM



I did a small test and it looks like that by default, at least the version I tried it on, mac usses keyboard interactive method vs username/password.

So basically what yo need to do is instead of using PasswordConnectionInfo class use KeyboardInteractiveConnectionInfo.


You can see an example of how to use it in this post.