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.
When you connected the output as below.
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
After that file is open in nano text editor as below image.
You can check in the browser that your code save or not as an image below.
How to edit a file from the server.
To Edit a file on the server, execute the following command: nano filename hit enter
Now you can see the output in the browser as an image below-
How to delete a file from the server.
To delete a file on the server, execute the following command: rm filename hit enter
Now you can see in below image index.php file is deleted.
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!
Be the first to comment.