Skip to content
New issue

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

Connecting to older OpenSSH version causes errors #139

Closed
bram-pkg opened this issue Jun 14, 2022 · 8 comments
Closed

Connecting to older OpenSSH version causes errors #139

bram-pkg opened this issue Jun 14, 2022 · 8 comments

Comments

@bram-pkg
Copy link

bram-pkg commented Jun 14, 2022

When connecting to a target with OpenSSH version 7.4, I get the following errors on the server:

Jun 14 11:03:33 [localhost] sshd[1613]: Connection from <redacted> port <port> on <redacted> port 2222
Jun 14 11:03:33 [localhost] sshd[1613]: Postponed publickey for <redacted> from <redacted> port <port> ssh2 [preauth]
Jun 14 11:03:33 [localhost] sshd[1613]: Accepted publickey for <redacted> from <redacted> port <port> ssh2: ED25519 SHA256:<fingerprint>
Jun 14 11:03:33 [localhost] sshd[1613]: pam_unix(sshd:session): session opened for user <redacted> by (uid=0)
Jun 14 11:03:33 [localhost] sshd[1613]: User child is on pid 1615
Jun 14 11:03:33 [localhost] sshd[1615]: parse_tty_modes: n_bytes_ptr != n_bytes: 141 141
Jun 14 11:03:33 [localhost] sshd[1615]: Packet integrity error (120 bytes remaining) at session.c:2035
Jun 14 11:03:33 [localhost] sshd[1615]: Disconnecting: Packet integrity error.
Jun 14 11:03:33 [localhost] sshd[1613]: pam_unix(sshd:session): session closed for user <redacted>

This results in an immediate disconnect after authenticating successfully, Warpgate even says in green text "Warpgate connected".

@Eugeny
Copy link
Member

Eugeny commented Jun 16, 2022

Could you please run Warpgate as RUST_LOG=debug warpgate run, try connecting again and post the resulting log?

@bram-pkg
Copy link
Author

Sure thing, give me a minute.

@bram-pkg
Copy link
Author

Sent the logs via email.

@Eugeny Eugeny closed this as completed in 160301d Jun 18, 2022
@Eugeny
Copy link
Member

Eugeny commented Jun 18, 2022

Should be fixed in the nightly: https://github.com/warp-tech/warpgate/actions/runs/2521517351

Eugeny added a commit that referenced this issue Jun 18, 2022
@bram-pkg
Copy link
Author

I've tested this on the latest snapshot, this issues does not appear to have been fixed.

I've emailed you the logs.

@bram-pkg
Copy link
Author

bram-pkg commented Jun 19, 2022

Here are the logs from the target:

Jun 19 20:35:39 [localhost] sshd[68391]: Connection from <redacted> port 44132 on <redacted> port 22
Jun 19 20:35:39 [localhost] sshd[68391]: Postponed publickey for <redacted> from <redacted> port 44132 ssh2 [preauth]
Jun 19 20:35:39 [localhost] sshd[68391]: Accepted publickey for <redacted> from <redacted> port 44132 ssh2: ED25519 <redacted>
Jun 19 20:35:39 [localhost] sshd[68391]: pam_unix(sshd:session): session opened for user <redacted> by (uid=0)
Jun 19 20:35:39 [localhost] sshd[68391]: User child is on pid 68393
Jun 19 20:35:39 [localhost] sshd[68393]: parse_tty_modes: n_bytes_ptr != n_bytes: 141 141
Jun 19 20:35:39 [localhost] sshd[68393]: Packet integrity error (120 bytes remaining) at session.c:2035
Jun 19 20:35:39 [localhost] sshd[68393]: Disconnecting: Packet integrity error.
Jun 19 20:35:39 [localhost] sshd[68391]: pam_unix(sshd:session): session closed for user <redacted>

@Eugeny
Copy link
Member

Eugeny commented Jun 22, 2022

Thanks for the logs - fixed in https://github.com/warp-tech/warpgate/releases/tag/v0.2.7

@bram-pkg
Copy link
Author

It's working now, thanks a ton Eugene!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: v0.3
Development

No branches or pull requests

2 participants