Cheers man, putty seemed to take it alright when I changed the key file over using PuttyGen, just asked for my username and I was in.
I tried to login with the new key file using the command line and that still asked for password, been using g-eclipse and that also asks for a password.
Now I just have to get the AMI on my machine and try and run it there so I can change it to my liking, but that's a job for next year.
Cheers
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Amazon AMI creation help, don't know pasword"
Collapse
-
You shouldn't need a root password - that's what the key file is for. Amazon strongly recommend disabling root login via password, and your AMI adheres to this recommendation.
It seems that your key file isn't being presented to the server. Have you tried ssh --help to make sure the switch is correct?
Also, I'm not sure why it's asking for a passphrase for the key file - my ssh doesn't do that (OS X, therefore BSD style Unix).
You could try using PuTTY - it's a bit more convenient on Windows, what with having a GUI and all that. Amazon have an appendix explaining how to get it set up for AWS, in the documentation I linked to.Last edited by NickFitz; 31 December 2008, 12:41.
Leave a comment:
-
Thanks, had a look at that new documentation which is pretty much the same but it made the process a bit clearer.
Got the lines round the file OK and it is a fedora AMI, when I connect to the HTTP:// I can see the apache splash page running OK.
I am using "OpenSSH for Windows" which works as it says it would in the docs where I would have to narrow the permissions on the key file.
Seems to be the last section when I try to log in..
C:\Users\XXX>ssh -i C:\development\ec2\key.txt root@ec2-82-44-39-232.compute-1.amazonaws.com
Enter passphrase for key 'C:\development\ec2\key.txt':
root@ec2-82-44-39-232.compute-1.amazonaws.com's password:
Permission denied, please try again.
root@ec2-82-44-39-232.compute-1.amazonaws.com's password:
the passphrase takes a blank OK but don't know the root password.
Thing is it never says anything about a root password in the linux docs.
Leave a comment:
-
That's a fairly old version of the docs; you may want to look at the latest version.
Does your key file include the
lines around the key?Code:-----BEGIN RSA PRIVATE KEY----- -----END RSA PRIVATE KEY-----
Also, is this a Linux or a Windows AMI?
Do you get a web page if you point your browser at http://ec2-175-129-139-170.compute-1.amazonaws.com/ ?
What ssh client are you using? The -i switch is pretty much standard for Unix, but as you are apparently running on Windows, it's possible that your ssh client might use different switches, or might follow the Windows convention of using / instead of - for switches.
Leave a comment:
-
Amazon AMI creation help, don't know pasword
OK, been trying today to get to grips with Amazon Web services with some degree of success. Don't really know much about online security and this may be the problem, but basically it is asking me for a passsword to get into my instance when I start it up.
Here are my steps, I have tried to follow this site...
http://docs.amazonwebservices.com/Am...sg/2006-06-26/
I create my primary key with
ec2-add-keypair gsg-keypair
and save that file c:/key.txt, then I create my instance..
ec2-run-instances ami-febd5897 -k gsg-keypair
And I can see it runs OK with
ec2-describe-instances
I change my instances permissions to get access.
ec2-authorize default -p 22
ec2-authorize default -p 80
Then I try to log in
ssh -i c:/key.txt root@ec2-175-129-139-170.compute-1.amazonaws.com
but it asks me for "a passphrase for the key' which I do not have, then it asks me if I have the root password which I do not have as well.
Does anyone know what I am doing wrong.
ThanksTags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Is your Director’s Loan Account (DLS) a target of HMRC’s closer look at close companies? Today 04:45
- Contractors, are you making any of the five big limited company bank account mistakes of 2026? Yesterday 05:51
- ‘Welcome’ increase in HMRC mileage rates for contractors using their own cars for work May 27 05:18
- King’s Speech 2026 including a welcome Late Payments Bill still leaves contractors short May 26 04:42
- Getting a mortgage when you're a contractor. The system wasn't built for you. Is that finally changing? May 22 06:11
- How deepfake AI contractors threaten umbrella company supply chains under JSL May 20 06:31
- Mileage rates review: Will the first AMAP rethink in 15 years benefit contractors? May 19 05:57
- What is a Forward Deployed Engineer (FDE), and are FDE jobs for IT contractors ripe? May 18 04:43
- IT contractor demand lunged towards growth in April 2026 May 13 04:48
- What does PGMOL’s win over HMRC mean for contractors? May 12 07:25

Leave a comment: