AWS prompts for password even though I have a key pair - amazon-web-services

I am trying to log into ASW after setting it up for the first time. I have been around the forums but cannot find someone with the same problem. Basically after I SSH in with my keypair files I get hit with a password request. After I do this:
chmod 400 x.pem
ssh -i x.pem ubuntu#ec2-52-25-41-126.us-west-2.compute.amazonaws.com
The forums recommend editing my sshd config file and setting:
PasswordAuthentication yes
However how can I get to my sshd file I cannot get in in the first place?
Also... I logged into the AWS GUI but cannot find anywhere to modify this password.
So...would anyone know
1) how to modify SSHD_Config when I cannot log in via ssh
2) what the default password might be?
Thanks for our hep Community.

Keep in mind that the AWS system, and your actual instance are two seperate systems. They don't talk to each other (This is for a very good reason once you understand the system design).
If you want to change your instance authentication, you need to do so from within the instance. AWS does not have access to do this for you.
If you are having issues connecting to your instance via SSH, you need to post information about what error you are getting.
Its not recommended that you use password authentication, its generally less secure than using a private key.

Related

Problem creating flock connection using datastream

Good morning everyone.
I've been trying to configure the connection to the GCP datastream for a few days now with great success. Basically I can connect to the database with the username and password provided using dbeaver. But when trying to create the connection in gcp to the datastream I get the following error:
(1045 "Access denied for user 'username'#'XX.XX.XX.XX' (using password: YES)")
Being the ip that I'm informing one of the ips that google informs to release in the google firewall. The username and password I already have access to in dbeaver.
The bank as firewall rule is public. This is. it is accessible from any host. Which generates even more doubts without pointing out a proper solution.
Since now. Thank you very much.
I hope to be able to connect to create a datastream and thus replace an ETL.

AWS: Unable to login

We are having AWS server for our corporate, which is having multiple admins. So 4-5 people are accessing/using same .pem file to login/upload to server. Problem is whenever we are trying to login through ssh/putty it hangs without any login. The only option left is to restart the EC2 instance frequently. But I think there has to be some other procedure which may safely allow us to login without hanging putty/ssh terminal.
Thanks in advance!

how to do django SMTP setting using aws instance with EIP and default domain name

Have took 2 day, can't find a good method.
1.AWS Linux instance have pre-install sendmail, I only need to send out email. But don't how to configure sendmail and other package.
2.Try to use AWS SES, however it needs to verify domain, which means I need to deal with AWS Router 53. After reading very complicated document and "create hosted zone", the AWS SES domain verification still "pending" after 24 hours. I am guessing maybe the default EIP domain name, like "ec2-***-amazonaws.com" is not a qualified/Registered domainn ?
As a newbie for SMTP setting, really don't know what to do? Since even if using a free mail server, it seems still need to 'verify domain', if aws default domain name "ec2-***-amazonaws.com" is invalid, how can I pass the domain verification?
By the way, since sendmail is pre-install, and this website is very simple, small group used, how to set configuration and other package to do email server on this instance itself?
Any suggestion is appreciated!
Thank you
It's much easier if you configure email from your Django app directly to a third party email provider, effectively by-passing the local sendmail configuration altogether. Trying to set up an email connection to AWS/SES on the server itself is also a pain, it's also much easier to configure the Django app to connect directly to AWS/SES
You have three very popular choices to setup email from Django:
Set up a connection to Gmail/Google apps .- If you'll be sending a lot of email volume I wouldn't recommend this option, because they block you easily if you use it to relay a lot of email.
Set up a connection to AWS/SES.- You mention you already tried this, but now try to set the connection inside Django using the Python packages boto and django-ses, this will make the email setup much easier. In addition, boto is also useful if you plan to use some other AWS service like S3.
Set up a connection to Mandrill.- This is another provider, not as big as Google or AWS, but they provide good service with decent free email volume and you can also set up a connection directly from Django.
Take a look at this article -- which I wrote -- that describes all the set up steps for all three providers in detail:
http://www.webforefront.com/django/setupdjangoemail.html

Check if Per User Outbound Gateway is in use via Admin SDK

Recently discovered in our Google Admin Portal that: Per User outbound Gateway is turned on, checking with other people I work with, no one knows why its turned on and when it was turned on.
I have been digging through the Google admin sdk and have not found a way to check to see if any users is using this setting.
In short, does anyone know how I can check to see if a user in our domain has a secondary smtp connection or a "Send Mail As" option in use?
So, the setting 'allow per user outbound gateway' does indeed give users permissions to add a 'From' address external to your domain. However if anyone is using this, they'll likely need to configure it as a send-mail as address inside Gmail.
You can list all 'Send as addresses' via the Email settings API as per https://developers.google.com/admin-sdk/email-settings/#retrieving_send-as_alias_settings. Note that the code examples provided will not work as they're out of date and showing client Login which has been disabled for months now. I'd be advising you to Auth with Oauth 2.0, call the endpoint with wget or CURL(probably wget since recursive)

WSO2 VMware image - validate email address?

I'm running the WSO2 Stratos VMware image, and I have it to the point where it's running, I've got the browser open, it's at my internal deployment of WSO2, and I've created an account for myself. The problem is, the VM isn't networked to anything, so when it tells me it sent an email to my account and would I please validate it, I can't validate it because it never actually sent an email. I thought maybe there'd be a local mail server on the Linux guest, but I couldn't find one.
Am I missing something? Do I even need to validate the account? I can't seem to access any of the Stratos services, and I suspect that the account validation has something to do with that.
You can log in as an administrator (with the default username/password: admin/admin) and activate the tenant/account you created.