{"id":655,"date":"2024-06-17T12:44:55","date_gmt":"2024-06-17T12:44:55","guid":{"rendered":"https:\/\/zalvis.com\/docs\/?p=655"},"modified":"2024-06-17T12:44:55","modified_gmt":"2024-06-17T12:44:55","slug":"secure-shell-ssh-overview","status":"publish","type":"post","link":"https:\/\/zalvis.com\/docs\/secure-shell-ssh-overview.html","title":{"rendered":"Secure Shell (SSH) Overview"},"content":{"rendered":"<p>Secure Shell, or SSH, is a way of using the command line to connect to your webspace. For power users, this is a feature that is really important since you can run commands and manage files. You must use an SSH client to connect to the server in order to use SSH. Within a terminal application, you can run commands by hand once you are connected.<\/p>\n<p>To connect to the server, you use a terminal or Shell client with SSH. You can download an SSH client such as PuTTY if you are using Windows. On the other hand, you can use Terminal if you\u2019re on Linux and macOS.<\/p>\n<p>You can type ssh if you have a command prompt, followed by the shell username (cPanel username) you have, an @ sign, and then the name of your server. For instance:<\/p>\n<p>ssh username@server.zalvis.com<\/p>\n<p>You can run PHP commands, move files, edit files, and much more once you have logged in. Key-based authentication is supported by our system, which is a lot more secure than just having a password. In addition, you will save time, and you won\u2019t have to type it every single time. Just create a private key and your computer, and then upload the public key\u2019s contents part of it to a file with the name .ssh\/authorized_keys. Don\u2019t hesitate to contact us if you need any help with this.<\/p>\n<p>After you\u2019ve logged in, there are some basic commands you should know about.<br \/>\nNavigation<\/p>\n<p>To navigate your hosting space, there are two major commands that you should use. These commands are the following:<\/p>\n<blockquote><p>ls -lah \u2013 the files in the folder you currently are in will be listed with this command, along with some extra info about the files such as permissions, time and date it was created\/last modified, and size.<br \/>\nPwd \u2013 this is a command which will help you not get lost since it will list he path you\u2019re currently in.<\/p><\/blockquote>\n<p>Viewing\/modifying\/creating<\/p>\n<p>In order to create a new file, use touch [filename.ext]. Keep in mind that the extension should be put at the end, such as .txt, for instance.<\/p>\n<p>In order to create a new directory in the location you\u2019re currently in, use mkdir [directoryname].<\/p>\n<p>Less experienced users use default nano to modify files. For instance, you can open the file in nano by using nano [filename].txt, and by pressing Ctrl+G or F1, you can read the full information on how to use it.<\/p>\n<p>vim can be used to edit files; however, users that are more advanced typically use this editor.<\/p>\n<p>For instance, vim [filename].php<\/p>\n<p>To find text inside of a file, you can use cat in combination with grep. You will be able to find the requested text easier since it will be outlined.<\/p>\n<p>For instance, cat [filename.txt] | grep \u201cOct 20 11:02\u201d, which means to display the contents of [filename.txt] break grab and outline text matching \u201cOct 20 11:02\u201d.<\/p>\n<div class=\"gfrik69e10655164cb\" >If you enjoyed this article, then you\u2019ll love Zalvis's Cloud Hosting platform. Turbocharge your website and get 24\/7 support from our veteran team. Our world-class hosting infrastructure focuses on auto-scaling, performance, and security. Let us show you the Zalvis difference! <a href=\"https:\/\/zalvis.com\/\">Check out our services.<\/a><\/div><style type=\"text\/css\">\r\n@media screen and (min-width: 1201px) {\r\n.gfrik69e10655164cb {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 993px) and (max-width: 1200px) {\r\n.gfrik69e10655164cb {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 769px) and (max-width: 992px) {\r\n.gfrik69e10655164cb {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 768px) and (max-width: 768px) {\r\n.gfrik69e10655164cb {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (max-width: 767px) {\r\n.gfrik69e10655164cb {\r\ndisplay: block;\r\n}\r\n}\r\n<\/style>\r\n","protected":false},"excerpt":{"rendered":"<p>Secure Shell, or SSH, is a way of using the command line to connect to your webspace. For power users, this is a feature that is really important since you can run commands and manage files. You must use an SSH client to connect to the server in order to use SSH. Within a terminal [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-655","post","type-post","status-publish","format-standard","hentry","category-cpanel-hosting"],"_links":{"self":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/comments?post=655"}],"version-history":[{"count":2,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/655\/revisions"}],"predecessor-version":[{"id":657,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/655\/revisions\/657"}],"wp:attachment":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/media?parent=655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/categories?post=655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/tags?post=655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}