Give access to ec2 AWS user only to specific files - unix

I'm trying to connect to amazon using aws and an user that I created in ec2. Unfortunately, I can't connect in filezilla to that user using the key, only to the default aws user. How exactly should I go about this?

If you created a user on ec2 with a command like adduser then to use this new user with filezilla set a password for the user with the passwd command. Then use the same username/password combination from filezilla
To use filezilla with ssh key pairs
generate a new key pair for the new user with the ssh-keygen command.
Put the public part in the new user's .ssh/authorized_keys file.
Ensure that the authorized_keys has the correct permissions and owner.
Convert the private key to pem or ppk format and load it into filezilla
See https://wiki.filezilla-project.org/Howto

Related

How can I create a Pentaho Data Integration repository in a sqlite3 database?

I wanted to create a repository to store transformations and jobs in it. I don't want to install a heavy weight RDBMS, and since Kettle/Spoon can deal with SQlite3 Databases I thought, I could use a SQlite3 Database.
So I created a new database file using the shell and I used the Repository Manager to create a new database connection to this new database file.
It worked, no problem. It also doesn't matter which user password combination I use: the test is successful.
My connection details look like this:
All database tables seem to be in place:
But when I want to access the repository, I'm being asked for a password. I use admin:admin, but I'm getting this message:
I checked the r_user table in the database. I was considering, to change the password there, but I read here that the default password is admin.
I was also thinking, that it's the database user and password that is required, but since it's a sqlite3 DB there is no such thing as a user and password to access it.
Anyone can help, please?
It's a bit embarrassing, but I'm not sure for whom, but...
If you open up the repositories.xml in .kettle directory, you'll see this:
That's a version where I didn't supply a password for the DB User (not the repository user). In this case you see the text Encrypted in between the <password> tag.
If you delete this text (leaving the <password> tag empty) the connection to the repository works (with user admin and password admin for the repository connection).
If you specified a password for the DB connection the encrypted password is stored in the repositories.xml file. But it's also prefixed with Encrypted. If you delete the prefix and leave the encrypted password intact it also works.
Since it's a sqlite3 database it doesn't matter what's the password, though.
Hope someone else will find this helpful.

How to change the password for phpmyadmin

Recently I installed the Bitnami Wordpress canned deployment on Google Cloud Platform.
I can view the phpMyAdmin instance at a local address (http://127.0.0.1:8888/phpmyadmin/) but I cannot determine the username and password to log into the database cluster. I have tried the username specified in Deployment Manager, but the temporary password is not working. When I attempt to login, I receive the following error:
mysqli_real_connect(): (HY000/1045): Access denied for user 'user'#'localhost' (using password: YES)
I have tried to use various common passwords, such as root/root, with no success. If we assume the password is lost, how I can I figure out the password, recover it, or change it by using an SSH shell to the hosting compute instance?
Resetting password by supporting team if possible try
This issue seems related to phpmyadmin. I found this similar post where they stated:
This is asking for your MySQL username and password.
You should enter these details, which will default to "root" and ""
(i.e.: nothing) if you've not specified a password.
UPDATE
Have you tried to create a new user or change the password? Check this guide on how to do it.
Bitnami Engineer here,
As our guide mentions, once you create the SSH tunnel to access phpMyAdmin, you need to use the user 'root' and the password we configure at boot time (it's the same password we configure in the application). More information in our documentation
https://docs.bitnami.com/google/components/phpmyadmin/
Oh it's opened now, the user was (root) which it's not mentioned anywhere when i created the instance, the password is the one which generated by Bitnami when the instance is created on the bitnami platform lunchpad website.
the password is used for 2 users :
username: user
username : root (hidden) for new users who are decided to try cloud servers is not easy to figure this username and which password must use.
thanks for trying to help.

Gcloud how to reset password for rstudio VM instance

I created a VM instance on gcloud hosting Rstudio. However, after a month of not using the server I forgot the password of the VM instance and not sure if I'm using the right user name. When I tried to login by external IP:8787 the credentials that I remember are not valid. Does anyone know how to recover password and username for VM instance?
Thank you!
You should connect to your rstudio Vm via SSH and then you will be able to choose new password by following these steps:
Go to your VM instances page and in the list of virtual machine instances, click SSH in the row of the instance that you want to connect to.
When you log-in your VM via SSH:
1) Run the command sudo passwd < YOUR_USERNAME > (Keep in mind by default the admin username is rstudio-user) .
2) Type the new password and then retype it and done.
3) Try to connect to your VM with your new password
Moreover, if you are not using the default username or you forget, you can run
sudo cat /etc/passwd to see the username when you logged in to your VM via SSH.

Access 2010 How to save password when creating linked table

I have an Access 2010 database with linked tables that connect to a sql server database. I do not have the connections set as a trusted connection, instead I want the linked tables to connect to the sql server login and password I provide. For users who are accessing this over our network it is still prompting for the password even though it displays the login id. Is there a way to make Access save the password as well in Access?
I found that in order to save a password in the DSN, I had to create a File DSN and in that file I had to be sure to include a field for the password such as:
PWD=mypassword
But there is a risk of exposing the password in a file. Ultimately, we decided that it was better to make users enter the password, which will be prompted for on just the first time they try to get a result from a query or table after they open the Access database file.

how to access and query database in unix?

I have a very general question about unix.
After using the ls command in the shell prompt, the following is listed
students
students is a database which i wanted to access.
How to access and query this database? Should i use sudo su commands?
First you determine the database type, where it is located (host address), the username, and password to access it. The you determine if you have the appropiate client to connect to it. Then you connect and run your sql query.
Is this a sqllite or berkly db? Mysql?
If MySql, and you have the mysql client installed, and the db is on the localhost... do this:
mysql -u username -p
Where username is the username to connect. It will prompt for password. When at the mysql prompt see all dbs with this:
show databases;
Select a db like this:
use somedatase;
Then query away.

Resources