We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS: fedora 33
$ ssh -V OpenSSH_8.4p1, OpenSSL 1.1.1i FIPS 8 Dec 2020
Carete ssh key with `ssh-keygen -t rsa -C "[email protected]"
Then create a simple ssh server
package main import ( "fmt" "io" "os" "github.com/gliderlabs/ssh" ) func main() { addr := "0.0.0.0:2222" serve := &ssh.Server{ Addr: addr, Handler: SessionHandler, PublicKeyHandler: PublicKeyHandler, } err := serve.ListenAndServe() if err != ssh.ErrServerClosed { fmt.Fprintf(os.Stdout, "ssh server %s now: %v", serve.Addr, err) } fmt.Println("close ssh server") } func PublicKeyHandler(ctx ssh.Context, key ssh.PublicKey) bool { return true } func SessionHandler(s ssh.Session) { io.WriteString(s, "hello, world!\n") }
Some Command
$ ssh -T sura@localhost -p 2222 sura@localhost: Permission denied (publickey).
Then run ssh -v -T sura@localhost -p 2222
ssh -v -T sura@localhost -p 2222
It return debug1: send_pubkey_test: no mutual signature algorithm
debug1: send_pubkey_test: no mutual signature algorithm
When i remove the PublicKeyHandler from code, it works
PublicKeyHandler
$ ssh -T sura@localhost -p 2222 hello, world!
I found a document about this. But I don’t know if this problem belongs to the client or the server
https://confluence.atlassian.com/bitbucketserverkb/ssh-rsa-key-rejected-with-message-no-mutual-signature-algorithm-1026057701.html
Should I not use rsa ssh key or is there any other solution? Thtank u!
The text was updated successfully, but these errors were encountered:
Cf golang/go#37278
Sorry, something went wrong.
Okay, I understand, I will close this issue
No branches or pull requests
OS: fedora 33
Carete ssh key with `ssh-keygen -t rsa -C "[email protected]"
Then create a simple ssh server
Some Command
Then run
ssh -v -T sura@localhost -p 2222
It return
debug1: send_pubkey_test: no mutual signature algorithm
When i remove the
PublicKeyHandler
from code, it worksI found a document about this. But I don’t know if this problem belongs to the client or the server
Should I not use rsa ssh key or is there any other solution?
Thtank u!
The text was updated successfully, but these errors were encountered: