Forum Discussion
AWS BigIP VE SSH root login failure
Hello everyone,
I'm following the guide to spin up a F5 BigIP virtual appliance on an EC2 instance listed on the F5/AWS documentation page. I've launched the appliance and according to the steps I'm trying to SSH into the instance to set the admin password. But for the life of me I can't log in with the SSH key I've created the appliance with.
I'm using the following command:
$ ssh -vvv root@[internalIP or EIP] -i .ssh/sshkey.pem
I've tried multiple SSH keys, also ones that work on other machines, the permissions are set correctly on the key files. The security groups are open for SSH and HTTPS on the appliance. But I keep getting a Connection Closed when trying to SSH in.
exact error:
debug1: Offering RSA public key: sshkey.pem debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug1: Server accepts key: pkalg ssh-rsa blen 279 debug2: input_userauth_pk_ok: fp xx:xx:xx:xx:xx:xx debug3: sign_and_send_pubkey: RSA xx:xx:xx:xx:xx:xx Connection closed by [IP address]
What am i doing wrong? How can I SSH into the appliance and change the admin password so I can start configuring the ltm?
Any help is much appreciated!
Thank you.
14 Replies
- What_Lies_Bene1
Cirrostratus
Are you using the AWS key (I ask as you have said you've tried more than one)?
Did you specify a key that was created in the same region?
Did you use an existing key pair or create a new one when you launched the instance?
- Yvonne_132607
Nimbostratus
I have created an SSH key via the AWS console, downloaded it, set the permissions right and used it to launch the appliance with. I thought I was going crazy and later on once I've terminated and relaunched a couple of appliances, I selected a different SSH key to launch the appliance with, an SSH key that I've used to spin up other instances, to make sure that it wasn't something with the key. But unfortunately, the same problem, i can connect to the appliance, it starts the key exchange and then the server closes the connection.
I am supposed to SSH in as root right? I've also tried ec2-user, but that asks for a password that I do not have.
Is there a way to log in to the web interface, a default admin password, that I can use?
- What_Lies_Bene1
Cirrostratus
The default admin username and password is admin/admin but I have a feeling things are a bit different with AWS and you must SSH in and set your own admin password first.
Yes, you should be specifying root when connecting via SSH.
Could you try from a different machine?
- Yvonne_132607
Nimbostratus
I've spun up another appliance in a different VPC in a different region, with a different SSH key that I've already used on other EC2 instances, I've tried connecting directly from my mac and via a jumphost. When I try to connect:
$ ssh -i sshkey.pem root@xxx.xxx.xxx.xxx
:o(
I must be doing something very very simple, very very wrong. Please enlighten me.
More verbose debug SSH info I can provide.
- What_Lies_Bene1
Cirrostratus
Can you force use of SSH v2 with the
parameter and see if that helps?-2
- Yvonne_132607
Nimbostratus
No dice :o( I would almost be tempted to say that permitrootlogin is set to no
$ ssh -i sshkey.pem root@xx.xx.xx.xx -2 Connection closed by xx.xx.xx.xx
- Yvonne_132607
Nimbostratus
got it, well actually I have to thank my awesome colleague Luigi for sticking with it and just trying stuff out, eventually finding the solution:
$ ssh admin@xx.xx.xx.xx.
Happy not to be crazy, but @F5 pleaaaaaase update your documentation..
- What_Lies_Bene1
Cirrostratus
Phew. So you/he just logged in as admin, no cert?
- Yvonne_132607
Nimbostratus
Yep, you need to use "admin" not "root. I had the SSH key added to my keychain so in reality it should be:
$ ssh -i sshkey.pem admin@ip
Thanks for you help What Lies Beneath!
- What_Lies_Bene1
Cirrostratus
Thanks for the confirmation, must make a note of that. I'm sure I've not had the same issue but its been a while. You're welcome. - Landono
Nimbostratus
Thanks for this Yvonne, I was having this problem all last week as well. This is incorrect in all of the F5 documentation, even the 11.6.0 guide which is the most recent.
- ChrisMutzel_151
Altocumulus
Try ec2-user/admin (or ec2-user/root). I had this same issue. The setup guide for 11.x (x<6) has a different user listed. Maybe this fixes your issue?
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com