`paramiko.ssh_exception.AuthenticationException: Authentication failed.` while `ssh` from the same machine works.
IntermediateTroubleshootingboto3, HTTP & API errors
Answer
Likely causes → paramiko is not using the same key or agent as OpenSSH: ~/.ssh/config settings (IdentityFile, User, ProxyJump) are not read by paramiko automatically; the key type or format is unsupported by an old paramiko (for example the newer OpenSSH key format or ed25519 on very old versions); RSA SHA-1 signatures rejected by the server.
Diagnose →
paramiko.util.log_to_file("/tmp/paramiko.log") # then inspect auth attempts
Fix → Pass username and key_filename explicitly, or use Fabric, which reads ~/.ssh/config. Upgrade paramiko.
Prevent → Keep SSH settings explicit in tool config; pin a current paramiko.
More on boto3, HTTP & API errors
`botocore.exceptions.NoCredentialsError: Unable to locate credentials`Beginner`botocore.exceptions.NoRegionError: You must specify a region.` even though `AWS_REGION` is set.Intermediate`botocore.exceptions.ClientError: An error occurred (UnauthorizedOperation) when calling the DescribeInstances operation: You are not authorized to perform this operation.`Beginner`An error occurred (ExpiredToken) when calling the ... operation: The security token included in the request is expired` midway through a long job.Advanced`An error occurred (RequestLimitExceeded) when calling the DescribeInstances operation (reached max retries: 4): Request limit exceeded.`Intermediate`An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid.`Beginner