Files
IB/instruction.txt
tomosa.sarkar b2e84608c3 feat: Create login page for admin.
wip: Admin user Configuration
2025-08-08 14:57:33 +05:30

36 lines
1.5 KiB
Plaintext

- download Aws cli and Aws session manager
- Key generate for KCCB
- port forwarding :
aws ssm start-session --target i-0c850dcf8b85b1447 --document-name --profile kccb AWS-StartPortForwardingSession --parameters "portNumber"=["8080"],"localPortNumber"=["8080"]
- run the api in localhost then port forward to Postgres
aws ssm start-session --target i-0c850dcf8b85b1447 --document-name --profile kccb AWS-StartPortForwardingSession --parameters "portNumber"=["5432"],"localPortNumber"=["5431"]
- For CBS port forward
aws ssm start-session --target i-0c850dcf8b85b1447 --document-name --profile kccb AWS-StartPortForwardingSession --parameters "portNumber"=["8686"],"localPortNumber"=["8686"]
______________________________________________________________________
For database:
- aws ssm start-session --target i-0c850dcf8b85b1447 --profile kccb
- psql -U postgres
- \l
- psql -U kmobile_db_owner -d kmobile_banking
- password : kmobile
- SELECT * FROM users;
- \x
- \d -- all tables details
- \d users; -- see the data type of column
- \c kmobile_banking kmobile_app_rw -- alter the user
- grant select,insert,update,delete on table admin to kmobile_app_rw; -- give read write access to a table
______________________________________________________________________
How to connect through linux machine?
- run the bat file.
- shh username@localhost
- give your password
Copy local machine to linux machine :
- scp -P 9022 Smsservice/smsserviceapplication.jar <username>@localhost:/home/<username>
- ssh nabanita@localhost -p 9022