After upgrading to Ubuntu 24 LTS, the terminal in AApanel stopped working and is giving this error, any idea how to fix this?
unknown error: Traceback (most recent call last):
File "/www/server/panel/class/ssh_terminal.py", line 158, in connect
pkey = paramiko.RSAKey.from_private_key(p_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/pkey.py", line 442, in from_private_key
key = cls(file_obj=file_obj, password=password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/rsakey.py", line 61, in init
self._from_private_key(file_obj, password)
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/rsakey.py", line 200, in from_private_key
data = self.read_private_key("RSA", file_obj, password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/pkey.py", line 526, in read_private_key
data = self.read_private_key_openssh(lines[start:end], password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/pkey.py", line 627, in _read_private_key_openssh
raise PasswordRequiredException(
paramiko.ssh_exception.PasswordRequiredException: private key file is encrypted
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/class/ssh_terminal.py", line 166, in connect
pkey = paramiko.Ed25519Key.from_private_key(p_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/pkey.py", line 442, in from_private_key
key = cls(file_obj=file_obj, password=password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/ed25519key.py", line 65, in __init__
signing_key = self._parse_signing_key_data(data, password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/ed25519key.py", line 98, in _parse_signing_key_data
raise PasswordRequiredException(
paramiko.ssh_exception.PasswordRequiredException: Private key file is encrypted
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/class/ssh_terminal.py", line 174, in connect
pkey = paramiko.ECDSAKey.from_private_key(p_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/pkey.py", line 442, in from_private_key
key = cls(file_obj=file_obj, password=password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/ecdsakey.py", line 124, in __init__
self._from_private_key(file_obj, password)
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/ecdsakey.py", line 287, in _from_private_key
data = self._read_private_key("EC", file_obj, password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/pkey.py", line 526, in _read_private_key
data = self._read_private_key_openssh(lines[start:end], password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/pkey.py", line 627, in _read_private_key_openssh
raise PasswordRequiredException(
paramiko.ssh_exception.PasswordRequiredException: private key file is encrypted
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/class/ssh_terminal.py", line 190, in connect
pkey = paramiko.DSSKey.from_private_key(p_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/pkey.py", line 442, in from_private_key
key = cls(file_obj=file_obj, password=password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/dsskey.py", line 64, in __init__
self._from_private_key(file_obj, password)
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/dsskey.py", line 232, in _from_private_key
data = self._read_private_key("DSA", file_obj, password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/pkey.py", line 526, in _read_private_key
data = self._read_private_key_openssh(lines[start:end], password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/paramiko/pkey.py", line 627, in _read_private_key_openssh
raise PasswordRequiredException(
paramiko.ssh_exception.PasswordRequiredException: private key file is encrypted