Showing posts with label SSH. Show all posts
Showing posts with label SSH. Show all posts

June 11, 2022

Configure a API Backend Server with custom domain on Amazon Web Services (AWS) EC2 Ubuntu with NGINX and Certbot SSL

Hi all,

Build your own API backend server on AWS free-tier with SSL.

The below steps with reference links will provide detailed information of each step.

  1. AWS account - Free-tier
  2. Create EC2 Ubuntu
  3. Connect to Ubuntu from your local using SSH/Putty
  4. Install NodeJS
    1. Open terminal
    2. curl -fsSL http://deb.nodesource.com/setup_lts.x | sudo -E bash -
    3. sudo apt update
    4. sudo apt install nodejs //installs latest LTS nodejs
  5. Create a sample node server
  6. Install and configure node server process manager
    1. sudo npm install -g pm2@latest
    2. Navigate to nodejs server folder
    3. pm2 start <filename>
    4. pm2 startup systemd
    5. pm2 save
    6. pm2 list // List all the nodejs apps with status
    7. pm2 stop/restart/start app_name/id // Actions of nodejs servers
  7. Install Nginx
  8. Configure your domain DNS records to map to AWS EC2 public/elastic IP address
  9. Secure Nginx with SSL certs

Hope the above information is useful to set up the environment and play with your backend server.

Feel free to send your feedback and comments to psrdotcom@gmail.com


September 28, 2011

SSH Versus SSL (Difference)


Hi everyone,

I googled and found out some differences.

SSH protocol is mainly used for shell based solutions and won’t be used to protect web browsing sessions and other application services 
SSL protocol is mainly used for secure http sessions (HTTPS). Now a days, all browsers are coming with built in SSL Protocol support with CA(Certification Authority) root certificates.  We no need to configure to use the SSL. No extra client software needed to use SSL.

SSH protocol is used to remotely login to remote network system/server and execute commands.

SSL protocol is used to send the data/files securely to a remote and/or network system.

References:

August 08, 2008

Exploring the Network in Linux

Hi all,

Do you want to connect to your remote system in Linux?

With the root privilege in Linux type these commands to explore remote system.

1. #ssh root@IP
2. Enter the password of remote system.
3. Now you connected to remote system.
4. Explore it and even you can shutdown the remote system by just executing poweroff command in your system.

Source: Prashanth Venugopalan.Y (My M.Tech Classmate)

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com