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
- How to run a contractor limited company — efficiently. Part one: software Yesterday 23:31
- Forget February as an MSC contractor seeking clarity, and maybe forget fairness altogether Yesterday 19:57
- What contractors should take from Honest Payroll Ltd’s failure Jan 21 07:05
- HMRC tax avoidance list ‘proves promoters’ nothing-to-lose mentality’ Jan 20 09:17
- Digital ID won’t be required for Right To Work, but more compulsion looms Jan 19 07:41
- A remote IT contractor's allowable expenses: 10 must-claims in 2026 Jan 16 07:03
- New UK crypto rules now apply. Here’s how mandatory reporting affects contractors Jan 15 07:03
- What the Ray McCann Loan Charge Review means for contractors Jan 14 06:21
- IT contractor demand defied seasonal slump in December 2025 Jan 13 07:10
- Five tax return hacks for contractors as Jan 31st looms Jan 12 07:45

Leave a comment: