The error message "ssh: unable to authenticate, no supported methods 
remain" typically indicates that the SSH client and server were unable to 
negotiate a mutually supported authentication method.


In your code, you're using password authentication (ssh.ClientAuthPassword), 
but it seems like the server you're trying to connect to may not support 
this authentication method. 

Here are a few steps you can take to troubleshoot this issue: 

   1. 
   
   Check SSH Server Configuration: Make sure that the SSH server you're 
   connecting to supports password authentication. Some servers may disable 
   password authentication for security reasons and only allow public key 
   authentication.
   2. 
   
   Use Correct Username and Password: Double-check that the username and 
   password you're providing are correct and valid for connecting to the SSH 
   <https://www.google.com>server.
   3. 
   
   Try Public Key Authentication: If the server supports it, you may want 
   to try using public key authentication instead of password authentication. 
   Generate an SSH key pair (public and private key) and configure the server 
   to accept the public key for authentication.
   4. 
   
   Debug SSH Connection: Enable SSH debug logging to get more detailed 
   information about the SSH negotiation process. You can do this by setting 
   config.Logger to log.New(os.Stderr, "", log.LstdFlags) in your 
   ssh.ClientConfig.
   5. 
   
   Verify Network Connectivity: Ensure that there are no network issues 
   preventing the SSH client from connecting to the server. Firewalls, network 
   restrictions, or connectivity issues could also cause authentication 
   failures.
   
On Friday, March 30, 2012 at 1:12:37 AM UTC flyfish wrote:

> Its looks like our ssh server is setup to use PAM with authentication for 
> publickey and keyboard-interactive. I have not looked into how 
> keyboard-interactive works yet but I would imagine it is using its own tty 
> terminal instead of stdin. 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/4e354150-c2b6-4a95-8a81-045745c191d8n%40googlegroups.com.

Reply via email to