Showing posts with label Access. Show all posts
Showing posts with label Access. Show all posts

Friday, 17 July 2020

How to access putty session of AWS EC2 instance using Google chrome extension



Practical steps:

  1. Open Google chrome.

2.Search for ssh chrome extension as shown below.                                                                            



3. Will find the below highlighted official link.Click on it.                                                                       

4.Then the below resultant screen will appears,Click on Add to chrome.                                             



5.Then in the chrome apps list , SSH app will added as shown below.

6.Double click on the above highlighted icon.
  Then enter the user id - ec2-user (Default for all EC2 instance in AWS)
                          host name - enter the public ip of host.


7.open cmd prompt by presing windows key + R , enter cmd in the prompt and press enter.
  • Navigate to download directory, where the private key is download.                                                 
  • by issuing the command:   to generate the public key                                                                                                               
ssh-keygen -y -f  Mykp.pem >Mykp.pub
Here:                                                                                                                   
Mykp.pem  is key name which is download at the time EC2 instance launch.
Mykp.pub  is the name of public key, which could be different from individual.
  • Now rename publlic key.by removing the extension.by running the below command:
ren MyKP.pem MykP




8.Now click on import option here.


9. Provide the path of private key and public key.and click on enter option, which is available at right bottom side of the page.



Hurrah got putty access of EC2 instance through google chrome extension.



Thursday, 5 March 2020

Access data from file in linux scripts

instead of search for one particular word line by line in file using the below command in scripts

In manual way of running Linux command, more command is useful to search for key word.

The follow method can be used to search for a key word in file in script point of view.

  1. To grep error messages from log file.
                  grep -i error /usr/sap/sid/work/dev_disp.log
      2.To grep warming messages from log file.
                 grep -i warning /usr/sap/sid/work/dev_disp.log
      3. To grep  for fail  key word in the file.
                grep -i fail /usr/sap/sid/work/dev_disp.log


Output to file:To send output  of above cmd to one file use syntax as below:



grep  -i error /usr/sap/sid/work/dev_disp.log > /install/error.log

Tuesday, 14 May 2019

SAP HANA NOTES 13: Delete a Cockpit User or Revoke Cockpit Access

As the cockpit user administrator, you can delete cockpit users. However, you will need to decide whether the underlying business user should remain.


content

Some cockpit users may have been created outside of the cockpit manager; their original purpose may have been to access other applications. Other cockpit users have been created through the cockpit manager for the sole purpose of accessing the cockpit. When you delete a cockpit user, you can choose to:
● Allow the underlying business user to remain (so that it can be used to access other applications), and only revoke the access to the cockpit.
● Completely delete the user.

Procedure

1.Connect to the Cockpit Manager and sign in as a cockpit user administrator. You can reach the Cockpit Manager by entering the Cockpit Manager URL created during cockpit installation, or by following the Manage Cockpit link in the cockpit. The URL takes this form: 
                                 https://<cockpit-host>:<port-number>