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

undefined symbol: EVP_CIPHER_CTX_get_key_length #1149

Closed
tassosblackg opened this issue Mar 15, 2022 · 5 comments
Closed

undefined symbol: EVP_CIPHER_CTX_get_key_length #1149

tassosblackg opened this issue Mar 15, 2022 · 5 comments

Comments

@tassosblackg
Copy link

tassosblackg commented Mar 15, 2022

Working with nodejs version 17.6.0, I get the following error

node: symbol lookup error: /home/user/code_api/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node: undefined symbol: EVP_CIPHER_CTX_get_key_length

and I don't manage to find any possible solution. What might be wrong?

the code trying to use is:

       const conn = new Client();
        conn.on('ready', () => {
            console.log('Client :: ready');
            conn.shell((err, stream) => {
                if (err) throw err;
                stream.on('close', () => {
                    console.log('Stream :: close');
                    conn.end();
                }).on('data', (data) => {
                    console.log('OUTPUT: ' + data);
                });
                stream.end('ls -l\nexit\n');
            });
        }).connect({
            host: 'remote-host-address',
            port: 22,
            username: 'user',
            password: 'some-password'

        });

OS: Manjaro Linux 21.2.4

@mscdex
Copy link
Owner

mscdex commented Mar 15, 2022

How did you install node? It sounds like your copy of node 17.x is using OpenSSL 1.x instead of 3.x.

@mscdex
Copy link
Owner

mscdex commented Mar 15, 2022

Also, just to verify my hunch, what does node -pe process.versions look like?

@tassosblackg
Copy link
Author

I've installed node using the

official repositories (community)

As for the node -pe process.versions output:

{
node: '17.6.0',
v8: '9.6.180.15-node.13',
uv: '1.43.0',
zlib: '1.2.11',
brotli: '1.0.9',
ares: '1.18.1',
modules: '102',
nghttp2: '1.46.0',
napi: '8',
llhttp: '6.0.4',
openssl: '1.1.1m',
cldr: '40.0',
icu: '70.1',
tz: '2021a3',
unicode: '14.0
}

@mscdex
Copy link
Owner

mscdex commented Mar 15, 2022

Can you try the master branch? I want to make sure things are fixed there now.

@mscdex
Copy link
Owner

mscdex commented Apr 27, 2022

I'm confident this is fixed in the master branch now. If you find out otherwise, let me know.

@mscdex mscdex closed this as completed Apr 27, 2022
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

2 participants