ssh3
ssh3 copied to clipboard
Access denied from the server: unauthorized
client and server version is: 0.1.4
server log:
./ssh3-server -v -bind :59959 -url-path /abc
password login is currently disabled
Server started, listening on :59959/abc
8:06PM INF Server started, listening on :59959/abc
8:08PM DBG received request from User-Agent SSH 3.0 francoismichel/ssh3 0.1.3 (major 0, minor 1, patch 3)
8:08PM DBG parsing ssh authorized key
8:08PM DBG parsing ssh-rsa identity
8:08PM DBG parsing ssh authorized key
8:08PM DBG parsing ssh-rsa identity
8:08PM ERR invalid private key token: token signature is invalid: crypto/rsa: verification error
8:08PM ERR invalid private key token: token signature is invalid: crypto/rsa: verification error
8:08PM DBG received request from User-Agent SSH 3.0 francoismichel/ssh3 0.1.3 (major 0, minor 1, patch 3)
8:08PM DBG parsing ssh authorized key
8:08PM DBG parsing ssh-rsa identity
8:08PM DBG parsing ssh authorized key
8:08PM DBG parsing ssh-rsa identity
8:08PM DBG parsing ssh authorized key
8:08PM DBG parsing ssh-rsa identity
8:08PM ERR invalid private key token: token signature is invalid: crypto/rsa: verification error
8:08PM ERR invalid private key token: token signature is invalid: crypto/rsa: verification error
8:08PM ERR invalid private key token: token has invalid claims: token used before issued
client log:
./ssh3 -insecure -v -privkey ~/.ssh/id_rsa [a.b.c.d]:59959/abc
12:09PM DBG dialing QUIC host at a.b.c.d
12:09PM DBG QUIC handshake complete
12:09PM DBG try the following Identity: pubkey-identity: ALG=RS256
12:09PM DBG send CONNECT request to the server
12:09PM ERR Access denied from the server: unauthorized
I already add the public key(id_rsa.pub) of ~/.ssh/id_rsa into the server side ~/.ssh/authorized_keys
If I don't add the public key, it will return 8:08PM ERR invalid private key token: token signature is invalid: crypto/rsa: verification error, once I add, the server side log will show 8:08PM ERR invalid private key token: token has invalid claims: token used before issued
Can you help to check it? thank you~~
@cxjava, your servers time may not be in sync. Try syncing time on both client and server.
I check the server side version, found the ssh3_server is version 0.1.3. After I upgrade to 0.1.4, works fine.
Can you help to add --version parameter to print the current version of the binary? Thank you!
Thanks for the feedback ! I am currently on vacation but yes, I'll add a --version switch for the next release. :-)