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

Does not allow to accept fingerprint. #78

Open
KsenZ opened this issue May 14, 2019 · 2 comments
Open

Does not allow to accept fingerprint. #78

KsenZ opened this issue May 14, 2019 · 2 comments

Comments

@KsenZ
Copy link

KsenZ commented May 14, 2019

When I connect to a server, I get:

CONNECTING WITH 'VPS' (Tue May 14 09:34:45 2019) =->

The authenticity of host '123.123.123.123 (123.123.123.123)' can't be established.
ECDSA key fingerprint is SHA256:BMWe11mjOE4Y47WaDtEe7m38A65wYixlSyU/sqHshyw.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes/no
Please type 'yes', 'no' or the fingerprint: yes

<-= DISCONNECTED (PRESS TO RECONNECT) (Tue May 14 09:35:27 2019)

After I connect via a regular terminal and accept the server's fingerprint, I can log in to the server with PAC Manager.

Debug output attached
pac_debug.txt

@KsenZ KsenZ changed the title Does not allow to accept fingerprint, disconnects immediately Does not allow to accept fingerprint. May 14, 2019
@merikz
Copy link

merikz commented May 14, 2019

This is likely due to configuration of Preferences->Main Options->Advanced->Host-key verification string.
Your remote node is prompting `Are you sure you want to continue connecting (yes/no/[fingerprint])? '. The "/[fingerprint]" part is non-standard, or at least not handled by the default setting.
The problem with the default setting is that variable $yes gets the value "yes/no" and the variable $no becomes "[fingerprint]".
You could try changing this setting to
^.+ontinue connecting \((.+?)\/(.+?)[/\)].*?\?\s*$
This should collect the strings "yes" and "no" correctly even if "no" is followed by "/[fingerprint]".

Disclaimer: I don't use pac anymore as it is not maintained anymore, so I haven't tested the above.
Try using Asbru Connection manager, which is a maintained fork:
https://github.com/asbru-cm/asbru-cm
https://www.asbru-cm.net/

@SlavaSafronov
Copy link

@merikz Your solution worked for me, thx. Asbru-cm 6.3.0, running on ubuntu 20.04.2

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