Reading list Switch to dark mode

    What is ssh & how to connect through terminal

    Updated 30 December 2019

    Today we will talk about what is ssh & how to connect through the terminal and much more.

    What is ssh…?

    SSH stands for Secure Shell, SSH is a method for secure remote login from one computer to another computer. It provides several alternative options for strong authentication, and it protects the communications security and integrity with strong encryption.

    How to connect SSH (SFTP) through the terminal..?

    First of all, open your terminal by pressing Ctrl + Alt + t key on your keyboard then terminal open.
    Type the following command ssh user name@host name then hit enter after that terminal asked your password then hit enter as an example below.

    Start your headless eCommerce
    now.
    Find out More

    Connection

    connection

    When you connected the output as below.

    connected

    Your system must have a text editor before creating any file on the server. To install Nano text editor on Debian or Ubuntu machines, execute the following command:
    sudo apt-get install nano

    Wait for all the processes to finish and the Nano setup will be complete.

    How to create a file on the server.

    To create a file on the server, execute the following command: nano filename

    File Creation

    After that file is open in nano text editor as below image.

    Add Text in file

    You can check in the browser that your code save or not as an image below.

    Output

    How to edit a file from the server.

    To Edit a file on the server, execute the following command: nano filename hit enter

    Edit file

    Now you can see the output in the browser as an image below-

    Edit Output

    How to delete a file from the server.

    To delete a file on the server, execute the following command: rm filename hit enter

    Remove File

    Now you can see in below image index.php file is deleted.

    Deleted File

    I hope you enjoyed this article, we will have some more useful articles in the future which will be helpful for the developer’ daily coding life.

    I will see you again with the new topic and have a great day!

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home