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

Connection to the Bastion takes many seconds #397

Closed
pielonet opened this issue Jun 5, 2023 · 2 comments
Closed

Connection to the Bastion takes many seconds #397

pielonet opened this issue Jun 5, 2023 · 2 comments

Comments

@pielonet
Copy link

pielonet commented Jun 5, 2023

Hi,

When connecting to the Bastion It takes roughly 20 seconds before I access to the shell.
It looks like loading bastions' plugins is taking a long time.

How could I reduce this loading time ?

Kind regards,
Thierry

@speed47
Copy link
Collaborator

speed47 commented Aug 22, 2023

Hey,

When you talk about the shell, do you mean the interactive mode prompt? (as follows)

Welcome to fix-my-config-please-missing-bastion-name interactive mode, type `help' for available commands.
You can use <tab> and <tab><tab> for autocompletion.
You'll be disconnected after 60 seconds of inactivity.
Loading... 90 commands and 372 autocompletion rules loaded.

you@bastion(master)>

before the "you@bastion(master)" prompt appears, but after the "Loading...." message does?

Note that if it's slow on the early phase of the connection (before any text is printed), a common cause is a broken DNS configuration on your system.

@misss13
Copy link

misss13 commented Sep 1, 2023

Hi,
I've been there, and spend almost 3 weeks debugging that stupid error. Finally debuged that line by line in perl... but to the point.
The bastion is trying to find a name for your client using dns request - so this is taking reallly long 20s after it finds out that there is no dns name for your client thus you waiting each command execution 20s xd. It's nice when clients have such name but for dayli usage it doesn't have.

The answer is to turn your dns off -> comment out everything in /etc/resolv.conf

Regards,
;3

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

3 participants