documentation.HELP! Amazon Elastic Compute Cloud: 2009-03-01 Documentation

ec2-get-password

Amazon Elastic Compute Cloud: 2009-03-01

previous page next page

ec2-get-password

Syntax

ec2-get-password instanceId -k windows-keypair

Description

Retrieves and decrypts the administrator password for the instances running Windows.

You must specify the key pair used to launch the instance.

[Note]Note

The Windows password is only generated the first time an AMI is launched. It is not generated for rebundled AMIs or after the password is changed on an instance.

The password is encrypted using the key pair that you provided and stored within the <password> tags of the console output.

There is no SOAP or Query version of the ec2-get-password command.

Options

OptionDescriptionRequired

instanceId

The ID of the instance.

Example: i-9b76d0f3

Yes

windows-keypair

The file that contains the private key used to launch the instance.

Example: windows-keypair

Yes

Output

Amazon EC2 returns a table that contains the following information:

  • The Windows administrator password

Amazon EC2 displays errors on stderr.

Example

This example returns the administrator password for the i-2574e22a instance.

PROMPT> ec2-get-password i-2574e22a -k windows-keypair
q96A40B9w

Related Topics

ec2-run-instances
  • ec2-describe-instances

  • previous page start next page

    Menu

    • Homepage

    Table of contents

    • What's New
    • Welcome
    • Introduction to Amazon Elastic Compute Cloud
      • What is Amazon EC2?
      • Features of Amazon EC2
      • Popular Uses for Amazon EC2
      • Components of Amazon EC2
      • Differences between Windows and Linux/UNIX
      • Amazon EC2 Running Windows
      • Amazon EC2 Charges
    • Using Amazon EC2
      • Amazon EC2 Flow
      • Creating and Preparing AMIs
        • Creating an AMI
          • Creating a Linux or UNIX AMI
            • Starting with an Existing AMI
            • Creating an AMI through a Loopback File
          • Creating a Windows AMI
        • Bundling an AMI
          • Bundling a Linux or UNIX AMI
          • Bundling a Windows AMI
        • Sharing AMIs
          • Shared AMI Guidelines (Linux and UNIX)
          • Sharing AMIs
          • Making an AMI Public
          • Sharing an AMI with Specific Users
          • Publishing Shared AMIs
        • Creating Paid AMIs
          • Amazon DevPay and Paid AMIs
          • Product Registration
          • Associating a Product Code with an AMI
          • Sharing Your Paid AMI with Select Users or the Public
          • Confirming an Instance Is Running an AMI Associated with a Product Code
          • Getting the Product Code from Within an Instance
          • Supported AMIs
      • Launching and Using Instances
        • Instance Usage
        • Instance Types
        • Instance Metadata
        • Instance Storage
        • Regions and Availability Zones
        • Using Shared AMIs
        • Paying for AMIs
        • Get Console Output and Reboot Instances
      • Accessing Instances
        • Accessing Instances in Linux and UNIX
        • Accessing Instances in Windows
      • Instance Addressing and Network Security
        • Instance Addressing
          • Elastic IP Addresses
        • Network Security
          • Concepts
          • Examples
      • Reserving Amazon EC2 Instances for Long-Term Use
        • How Reserved Instances are Applied
        • How to Find Available Reserved Instances
        • How to Reserve an Instance
        • How to Know the Status of Purchased Reserved Instances
      • Amazon Elastic Block Store
        • Overview
        • Amazon EBS Concepts
        • Amazon EBS Use Cases
        • Amazon EBS API Overview
        • Creating Amazon EBS Volumes and Snapshots
    • Using the APIs
      • Using the SOAP API
      • Using the Query API
    • API Reference
      • API Conventions
      • API Versioning
      • API Error Codes
      • Data Types
        • Common Data Types
          • AvailabilityZoneItemType
          • BlockDeviceMappingItemType
          • BundleInstanceTaskS3StorageType
          • BundleInstanceTaskStorageType
          • BundleInstanceTaskType
          • DescribeImagesResponseItemType
          • DescribeKeyPairsResponseItemType
          • DescribeReservedInstancesOfferingsResponseSetItemType
          • DescribeReservedInstancesOfferingsResponseSetType
          • DescribeReservedInstancesOfferingsSetItemType
          • DescribeReservedInstancesOfferingsSetType
          • DescribeReservedInstancesOfferingsType
          • DescribeReservedInstancesResponseSetItemType
          • DescribeReservedInstancesResponseSetType
          • DescribeReservedInstancesResponseType
          • DescribeReservedInstancesSetItemType
          • DescribeReservedInstancesSetType
          • DescribeReservedInstancesType
          • EmptyElementType
          • GroupSetType
          • InstanceStateType
          • IpPermissionType
          • LaunchPermissionItemType
          • LaunchPermissionOperationType
          • PlacementRequestType
          • PlacementResponseType
          • PurchaseReservedInstancesOfferingResponse
          • PurchaseReservedInstancesOfferingType
          • ProductCodeItemType
          • ProductInstanceResponseItemType
          • RegionItemType
          • ReservationInfoType
          • RunInstancesItemType
          • RunningInstancesItemType
          • SecurityGroupItemType
          • TerminateInstancesResponseInfoType
          • UserDataType
          • UserIdGroupPairType
        • Amazon EBS Data Types
          • AttachVolumeResponseType
          • AttachVolumeType
          • CreateSnapshotResponseType
          • CreateSnapshotType
          • CreateVolumeResponseType
          • CreateVolumeType
          • DeleteSnapshotResponseType
          • DeleteSnapshotType
          • DeleteVolumeResponseType
          • DeleteVolumeType
          • DescribeSnapshotsResponseType
          • DescribeSnapshotsType
          • DescribeVolumesResponseType
          • DescribeVolumesType
          • DetachVolumeResponseType
          • DetachVolumeType
      • Amazon EC2 SOAP API
        • List of Operations by Function
        • AllocateAddress
        • AssociateAddress
        • AttachVolume
        • AuthorizeSecurityGroupIngress
        • BundleInstance
        • CancelBundleTask
        • ConfirmProductInstance
        • CreateKeyPair
        • CreateSecurityGroup
        • CreateSnapshot
        • CreateVolume
        • DeleteKeyPair
        • DeleteSecurityGroup
        • DeleteSnapshot
        • DeleteVolume
        • DeregisterImage
        • DescribeAddresses
        • DescribeAvailabilityZones
        • DescribeBundleTasks
        • DescribeImageAttribute
        • DescribeImages
        • DescribeInstances
        • DescribeKeyPairs
        • DescribeReservedInstances
        • DescribeReservedInstancesOfferings
        • DescribeRegions
        • DescribeSecurityGroups
        • DescribeSnapshots
        • DescribeVolumes
        • DetachVolume
        • DisassociateAddress
        • GetConsoleOutput
        • ModifyImageAttribute
        • PurchaseReservedInstancesOffering
        • RebootInstances
        • RegisterImage
        • ReleaseAddress
        • ResetImageAttribute
        • RevokeSecurityGroupIngress
        • RunInstances
        • TerminateInstances
      • Amazon EC2 Query API
        • Common Query Parameters
        • List of Operations by Function
        • AllocateAddress
        • AssociateAddress
        • AttachVolume
        • AuthorizeSecurityGroupIngress
        • BundleInstance
        • CancelBundleTask
        • ConfirmProductInstance
        • CreateKeyPair
        • CreateSecurityGroup
        • CreateSnapshot
        • CreateVolume
        • DeleteKeyPair
        • DeleteSecurityGroup
        • DeleteSnapshot
        • DeleteVolume
        • DetachVolume
        • DeregisterImage
        • DescribeAddresses
        • DescribeAvailabilityZones
        • DescribeBundleTasks
        • DescribeImageAttribute
        • DescribeImages
        • DescribeInstances
        • DescribeKeyPairs
        • DescribeRegions
        • DescribeReservedInstances
        • DescribeReservedInstancesOfferings
        • DescribeSecurityGroups
        • DescribeSnapshots
        • DescribeVolumes
        • DisassociateAddress
        • GetConsoleOutput
        • ModifyImageAttribute
        • PurchaseReservedInstancesOffering
        • RebootInstances
        • ReleaseAddress
        • RegisterImage
        • ResetImageAttribute
        • RevokeSecurityGroupIngress
        • RunInstances
        • TerminateInstances
    • Command Line Tools Reference
      • AMI Tools
        • Common Options for AMI Tools
        • ec2-bundle-image
        • ec2-bundle-vol
        • ec2-delete-bundle
        • ec2-download-bundle
        • ec2-migrate-bundle
        • ec2-migrate-manifest
        • ec2-unbundle
        • ec2-upload-bundle
      • API Tools
        • Common Options for API Tools
        • List of Operations by Function
        • ec2-add-group
        • ec2-add-keypair
        • ec2-allocate-address
        • ec2-associate-address
        • ec2-attach-volume
        • ec2-authorize
        • ec2-bundle-instance
        • ec2-cancel-bundle-task
        • ec2-confirm-product-instance
        • ec2-create-snapshot
        • ec2-create-volume
        • ec2-delete-group
        • ec2-delete-keypair
        • ec2-delete-snapshot
        • ec2-delete-volume
        • ec2-deregister
        • ec2-describe-addresses
        • ec2-describe-availability-zones
        • ec2-describe-bundle-tasks
        • ec2-describe-group
        • ec2-describe-image-attribute
        • ec2-describe-images
        • ec2-describe-instances
        • ec2-describe-keypairs
        • ec2-describe-regions
        • ec2-describe-reserved-instances
        • ec2-describe-reserved-instances-offerings
        • ec2-detach-volume
        • ec2-describe-snapshots
        • ec2-describe-volumes
        • ec2-disassociate-address
        • ec2-fingerprint-key
        • ec2-get-console-output
        • ec2-get-password
        • ec2-migrate-image
        • ec2-modify-image-attribute
        • ec2-purchase-reserved-instances-offering
        • ec2-reboot-instances
        • ec2-release-address
        • ec2-register
        • ec2-reset-image-attribute
        • ec2-revoke
        • ec2-run-instances
        • ec2-terminate-instances
    • Technical FAQ
      • General Information
      • Operation Information
      • Instance Types and Architectures
      • IP Information
      • Regions and Availability Zones
      • Windows Instances
      • Monitoring, Errors, and Unexpected Behavior
      • Reserved Instances FAQs
      • Paid AMIs
      • Kernels, RAM Disks, and Block Device Mappings
      • Error Messages
      • Miscellaneous
    • Appendix
    • Glossary
    • Document Conventions
    • Index

    Get in touch

    Submit feedback about this site to:

    • [email protected]

    © documentation.help. Design: rehmann.co.