`paramiko.ssh_exception.SSHException: Server '10.0.1.15' not found in known_hosts`
BeginnerTroubleshootingboto3, HTTP & API errors
Answer
Likely causes → The default policy is RejectPolicy, and the host key is not in the loaded known_hosts (or you never called load_system_host_keys()).
Diagnose →
ssh-keygen -F 10.0.1.15
Fix → Load known hosts (client.load_system_host_keys()), and add the host key from a trusted source (provisioning output, ssh-keyscan over a trusted network, SSH CA). Avoid switching to AutoAddPolicy in production.
Prevent → Distribute host keys or SSH certificates as part of provisioning.
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