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

"Server refuse our key" if upterm client lost time sync #151

Open
slapsh opened this issue Jan 16, 2023 · 0 comments
Open

"Server refuse our key" if upterm client lost time sync #151

slapsh opened this issue Jan 16, 2023 · 0 comments

Comments

@slapsh
Copy link

slapsh commented Jan 16, 2023

If I try to start upterm client on a host with wrong time on it, I will have "Server refuse our key" message when I try to connect to it by ssh client.

How to repeat:

  1. Let's break time setting on target server:
$ timedatectl set-ntp false
$ timedatectl set-time 10:00
$ timedatectl
               Local time: Mon 2023-01-16 10:00:03 UTC
               Universal time: Mon 2023-01-16 10:00:03 UTC
               RTC time: Mon 2023-01-16 10:00:03
               Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: no
              NTP service: inactive
              RTC in local TZ: no
  1. Run "upterm host" command:
./upterm host
=== CYCTSSRPMHSQZIRTANAP
Command:                /bin/bash
Force Command:          n/a
Host:                   ssh://uptermd.upterm.dev:22
SSH Session:            ssh CyCTSsrPMHsqzirTanap:[email protected]

Run 'upterm session current' to display this screen again

Press <q> or <ctrl-c> to accept connections...
  1. Try to connect on some host to "target server" by upterm:
$ ssh CyCTSsrPMHsqzirTanap:[email protected]
CyCTSsrPMHsqzirTanap:[email protected]: Permission denied (publickey).

As soon as we sync time on target server everything works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant