** Description changed:
I am trying to build my own image using 0001-com-ubuntu-server-jammy
(20_04-lts) image using ARM template but, it is failing to validate SSH
keys generated though it is in openSSH format and have required
permissions. Tried downgrading / upgrading paramiko package but it is
the same issue we are facing. Please help us unblock this issue. Early
response would be appreciable.
Below are the error exceptions raised:
+
+ at ChildProcess.emit (node:events:519:28)
+ at maybeClose (node:internal/child_process:1105:16)
+ at ChildProcess._handle.onexit (node:internal/child_process:305:5)
key = self._key_from_filepath(
File
"/usr/share/miniconda/envs/py36/lib/python3.8/site-packages/paramiko/client.py",
line 577, in _key_from_filepath
key = klass.from_private_key_file(key_path, password)
File
"/usr/share/miniconda/envs/py36/lib/python3.8/site-packages/paramiko/pkey.py",
line 206, in from_private_key_file
key = cls(filename=filename, password=password)
File
"/usr/share/miniconda/envs/py36/lib/python3.8/site-packages/paramiko/ed25519key.py",
line 83, in __init__
signing_key = self._parse_signing_key_data(data, password)
File
"/usr/share/miniconda/envs/py36/lib/python3.8/site-packages/paramiko/ed25519key.py",
line 132, in _parse_signing_key_data
raise SSHException("Invalid key")
paramiko.ssh_exception.SSHException: Invalid key
- Aborting due to failures in fabfile; status code: 1
-
- ##[error]Script failed with error: Error: The process '/usr/bin/bash' failed
with exit code 1
- at ExecState._setResult
(/mnt/vss/_work/_tasks/AzureCLI_46e4be58-730b-4389-8a2f-ea10b3e5e815/1.238.5/node_modules/azure-pipelines-task-lib/toolrunner.js:1219:25)
- at ExecState.CheckComplete
(/mnt/vss/_work/_tasks/AzureCLI_46e4be58-730b-4389-8a2f-ea10b3e5e815/1.238.5/node_modules/azure-pipelines-task-lib/toolrunner.js:1202:18)
- at ChildProcess.<anonymous>
(/mnt/vss/_work/_tasks/AzureCLI_46e4be58-730b-4389-8a2f-ea10b3e5e815/1.238.5/node_modules/azure-pipelines-task-lib/toolrunner.js:1115:19)
- at ChildProcess.emit (node:events:519:28)
- at maybeClose (node:internal/child_process:1105:16)
- at ChildProcess._handle.onexit (node:internal/child_process:305:5)
-
- key = self._key_from_filepath(
- File
"/usr/share/miniconda/envs/py36/lib/python3.8/site-packages/paramiko/client.py",
line 577, in _key_from_filepath
- key = klass.from_private_key_file(key_path, password)
- File
"/usr/share/miniconda/envs/py36/lib/python3.8/site-packages/paramiko/pkey.py",
line 206, in from_private_key_file
- key = cls(filename=filename, password=password)
- File
"/usr/share/miniconda/envs/py36/lib/python3.8/site-packages/paramiko/ed25519key.py",
line 83, in __init__
- signing_key = self._parse_signing_key_data(data, password)
- File
"/usr/share/miniconda/envs/py36/lib/python3.8/site-packages/paramiko/ed25519key.py",
line 132, in _parse_signing_key_data
- raise SSHException("Invalid key")
- paramiko.ssh_exception.SSHException: Invalid key
-
Debug logs:
DEBUG:invoke:Didn't see any
/mnt/vss/_work/1/s/automated-***/linux/***/fabric.yaml, skipping.
DEBUG:invoke:Didn't see any
/mnt/vss/_work/1/s/automated-***/linux/***/fabric.yml, skipping.
DEBUG:invoke:Didn't see any
/mnt/vss/_work/1/s/automated-***/linux/***/fabric.json, skipping.
DEBUG:invoke:Merging config sources in order onto new empty _config...
DEBUG:invoke:Defaults: {'run': {'asynchronous': False, 'disown': False,
'dry': False, 'echo': False, 'echo_stdin': None, 'encoding': None, 'env': {},
'err_stream': None, 'fallback': True, 'hide': None, 'in_stream': None,
'out_stream': None, 'echo_format': '\x1b[1;37m{command}\x1b[0m', 'pty': False,
'replace_env': True, 'shell': '/bin/bash', 'warn': False, 'watchers': []},
'runners': {'local': <class 'invoke.runners.Local'>, 'remote': <class
'fabric.runners.Remote'>}, 'sudo': {'password': None, 'prompt': '[sudo]
password: ', 'user': None}, 'tasks': {'auto_dash_names': True,
'collection_name': 'fabfile', 'dedupe': True, 'executor_class': None,
'search_root': None}, 'timeouts': {'command': None, 'connect': None},
'connect_kwargs': {}, 'forward_agent': False, 'gateway': None,
'inline_ssh_env': False, 'load_ssh_configs': True, 'port': 22,
'ssh_config_path': None, 'user': 'cloudtest'}
DEBUG:invoke:Collection-driven: {}
DEBUG:invoke:System-wide config file (/etc/fabric.py): {}
DEBUG:invoke:Runtime config file has not been loaded yet, skipping
DEBUG:invoke:Overrides: {'run': {'echo': True}, 'tasks': {}, 'sudo': {},
'timeouts': {}, 'connect_kwargs': {}}
DEBUG:invoke:Modifications: {}
DEBUG:invoke:Deletions: {}
DEBUG:invoke:Examining top level tasks [<parser/Context '***'>]
DEBUG:invoke:Tasks (now Calls) with kwargs: [<Call '***', args: (), kwargs:
{}>]
DEBUG:invoke:Executing <Call '***', args: (), kwargs: {}>
DEBUG:invoke:Loading collection configuration
DEBUG:invoke:Merging config sources in order onto new empty _config...
DEBUG:invoke:Defaults: {'run': {'asynchronous': False, 'disown': False,
'dry': False, 'echo': False, 'echo_stdin': None, 'encoding': None, 'env': {},
'err_stream': None, 'fallback': True, 'hide': None, 'in_stream': None,
'out_stream': None, 'echo_format': '\x1b[1;37m{command}\x1b[0m', 'pty': False,
'replace_env': True, 'shell': '/bin/bash', 'warn': False, 'watchers': []},
'runners': {'local': <class 'invoke.runners.Local'>, 'remote': <class
'fabric.runners.Remote'>}, 'sudo': {'password': None, 'prompt': '[sudo]
password: ', 'user': None}, 'tasks': {'auto_dash_names': True,
'collection_name': 'fabfile', 'dedupe': True, 'executor_class': None,
'search_root': None}, 'timeouts': {'command': None, 'connect': None},
'connect_kwargs': {}, 'forward_agent': False, 'gateway': None,
'inline_ssh_env': False, 'load_ssh_configs': True, 'port': 22,
'ssh_config_path': None, 'user': 'cloudtest'}
DEBUG:invoke:Collection-driven: {}
DEBUG:invoke:ParseMachine: 'context' => 'context'
DEBUG:invoke:Wrapping up context None
DEBUG:invoke:Moving to context '***'
DEBUG:invoke:Context args: {}
DEBUG:invoke:Context flags: {}
DEBUG:invoke:Context inverse_flags: {}
DEBUG:invoke:ParseMachine: 'context' => 'end'
DEBUG:invoke:Wrapping up context '***'
DEBUG:invoke:Resulting task contexts: [<parser/Context '***'>]
DEBUG:fabric:File not found, skipping
DEBUG:fabric:Loaded 2 new ssh_config rules from '/etc/ssh/ssh_config'
DEBUG:invoke:Merging config sources in order onto new empty _config...
DEBUG:invoke:Defaults: {'run': {'asynchronous': False, 'disown': False,
'dry': False, 'echo': False, 'echo_stdin': None, 'encoding': None, 'env': {},
'err_stream': None, 'fallback': True, 'hide': None, 'in_stream': None,
'out_stream': None, 'echo_format': '\x1b[1;37m{command}\x1b[0m', 'pty': False,
'replace_env': True, 'shell': '/bin/bash', 'warn': False, 'watchers': []},
'runners': {'local': <class 'invoke.runners.Local'>, 'remote': <class
'fabric.runners.Remote'>}, 'sudo': {'password': None, 'prompt': '[sudo]
password: ', 'user': None}, 'tasks': {'auto_dash_names': True,
'collection_name': 'fabfile', 'dedupe': True, 'executor_class': None,
'search_root': None}, 'timeouts': {'command': None, 'connect': None},
'connect_kwargs': {}, 'forward_agent': False, 'gateway': None,
'inline_ssh_env': False, 'load_ssh_configs': True, 'port': 22,
'ssh_config_path': None, 'user': 'cloudtest'}
DEBUG:invoke:Collection-driven: {}
DEBUG:invoke:System-wide config file (/etc/fabric.py): {}
DEBUG:invoke:Per-user config file (/home/cloudtest/.fabric.py): {}
DEBUG:invoke:Per-project config file has not been loaded yet, skipping
DEBUG:invoke:Environment variable config: {}
DEBUG:invoke:Runtime config file has not been loaded yet, skipping
DEBUG:invoke:Overrides: {}
DEBUG:invoke:Modifications: {'inline_ssh_env': False}
DEBUG:invoke:Deletions: {}
DEBUG:paramiko.transport:starting thread (client mode): 0x8cec59d0
DEBUG:paramiko.transport:Local version/idstring: SSH-2.0-paramiko_2.5.1
DEBUG:paramiko.transport:Remote version/idstring: SSH-2.0-OpenSSH_8.9p1
Ubuntu-3ubuntu0.10
INFO:paramiko.transport:Connected (version 2.0, client OpenSSH_8.9p1)
DEBUG:paramiko.transport:kex algos:['curve25519-sha256',
'[email protected]', 'ecdh-sha2-nistp256', 'ecdh-sha2-nistp384',
'ecdh-sha2-nistp521', '[email protected]',
'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group16-sha512',
'diffie-hellman-group18-sha512', 'diffie-hellman-group14-sha256',
'[email protected]'] server key:['rsa-sha2-512', 'rsa-sha2-256',
'ecdsa-sha2-nistp256', 'ssh-ed25519'] client
encrypt:['[email protected]', 'aes128-ctr', 'aes192-ctr',
'aes256-ctr', '[email protected]', '[email protected]'] server
encrypt:['[email protected]', 'aes128-ctr', 'aes192-ctr',
'aes256-ctr', '[email protected]', '[email protected]'] client
mac:['[email protected]', '[email protected]',
'[email protected]', '[email protected]',
'[email protected]', '[email protected]', '[email protected]',
'hmac-sha2-256', 'hmac-sha2-512', 'hmac-sha1'] server
mac:['[email protected]', '[email protected]',
'[email protected]', '[email protected]',
'[email protected]', '[email protected]', '[email protected]',
'hmac-sha2-256', 'hmac-sha2-512', 'hmac-sha1'] client compress:['none',
'[email protected]'] server compress:['none', '[email protected]'] client
lang:[''] server lang:[''] kex follows?False
DEBUG:paramiko.transport:Kex agreed: [email protected]
DEBUG:paramiko.transport:HostKey agreed: ssh-ed25519
DEBUG:paramiko.transport:Cipher agreed: aes128-ctr
DEBUG:paramiko.transport:MAC agreed: hmac-sha2-256
DEBUG:paramiko.transport:Compression agreed: none
DEBUG:paramiko.transport:kex engine KexCurve25519 specified hash_algo
<built-in function openssl_sha256>
DEBUG:paramiko.transport:Switch to new keys ...
DEBUG:paramiko.transport:Adding ssh-ed25519 host key for 10.6.0.13:
b'6d999400868957b7e83d30e09d13d242'
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2072322
Title:
Unable to validate the rsa generated ssh keys though it is in openSSH
fomat
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-cdimage/+bug/2072322/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs