

{"id":110054,"date":"2022-08-18T11:00:10","date_gmt":"2022-08-18T05:30:10","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=110054"},"modified":"2022-08-18T11:34:05","modified_gmt":"2022-08-18T06:04:05","slug":"ssh-command-in-linux","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/","title":{"rendered":"SSH Command in Linux"},"content":{"rendered":"<p>In this article you will learn all there is to the SSH command and tool in Linux-based operating system. We will go straight from the fundamentals like what SSH is, terminology, uses of SSH, How SSH works, and the components of SSH to technical stuff like installing SSH, options used with SSH, generating keys with SSH and so many more. So buckle up and read till the end!<\/p>\n<h3>What is SSH in Linux?<\/h3>\n<p>SSH is the abbreviation for Secure Socket Shell or Secure Shell. SSH is a protocol used to connect to a remote server or system securely. It uses an SSH protocol (a secure protocol)as the data transfers between the client and the host takes place in an encrypted manner.<\/p>\n<p>The prime role of the SSH command in Linux is to manage remote systems. Normally, this would be another Linux system, it could also be a router, firewall, or even a computer with a different operating system.<\/p>\n<p>In simple terms, the ssh command lets you remotely log in to another system and gives you a terminal that allows you to fully access the remote system as if you were physically in front of the machine.<\/p>\n<p>By definition, SSH is a cryptographic network protocol used for an encrypted connection between a client and a server. There are a number of SSH clients available for both commercial and free. SSH is so widely used, that apart from Linux, it is also available on macOS and windows.<\/p>\n<h3>What is the use of Linux SSH Command?<\/h3>\n<p>As I mentioned earlier, SSH is used to remotely log in to another system, and it lets you control the system as if you are physically present there. This feature is a god-sent boon for some people.<\/p>\n<p>The reality of managing innumerable remote systems without ven getting up from your chair is nothing but a dream for Linux administrators, or even ordinary users having multiple systems in different locations.<\/p>\n<p>SSH can also create port forwarding tunnels, successfully encrypting and securing connections made through any type of application or program on your Linux system.<\/p>\n<h3>SSH Terminologies<\/h3>\n<p>Before we head any further, let us familiarize ourselves with the terminology that is related to the world around SSH.<\/p>\n<h4>1. Service<\/h4>\n<p>Service refers to software that runs in the background so that it can be used by computers other than the one it is already installed on.<\/p>\n<h4>2. Host<\/h4>\n<p>Host refers to literally any computer. Computers are called hosts because technically a computer can host an application that is useful to some other computer.<\/p>\n<h4>3. Local<\/h4>\n<p>Local refers to the computer which you or some software is using.<\/p>\n<h4>4. Remote<\/h4>\n<p>Remote refers to a computer you are physically not in front of.<\/p>\n<h3>How does SSH work?<\/h3>\n<p>If we want to establish an SSH connection, we need two primary components, a client and a host. The host can be a domain name, IP address, server, and more. The client uses the specified host information to establish the connection. If at all the credential provided is verified, an encrypted connection is established.<\/p>\n<p>The host contains an SSH process that is ready to make a request for the client connection through a TCP or IP port. Immediately when the client initiates a connection, the host responds with the necessary information.<\/p>\n<p>Once the provided information is verified, SSH establishes a new connection for the available environment.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/how-does-ssh-work.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110091\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/07\/how-does-ssh-work.webp\" alt=\"how does ssh work\" width=\"1267\" height=\"376\" \/><\/a><\/p>\n<h3>Linux SSH commands<\/h3>\n<p>Other than the SSH client command, there are other commands of SSH:<\/p>\n<h4>1. ssh-keygen<\/h4>\n<p>This command creates a key pair for public-key authentication.<\/p>\n<h4>2. ssh-copy-id<\/h4>\n<p>This command configures a public key as authorized on a server.<\/p>\n<h4>3. ssh-agent<\/h4>\n<p>This command creates an agent to hold a private key for a single sign-on.<\/p>\n<h4>4. ssh-add<\/h4>\n<p>This command is a tool to add a key to the agent.<\/p>\n<h4>5. scp<\/h4>\n<p>This command is a file transfer client with an RCP-like command interface.<\/p>\n<h4>6. sftp<\/h4>\n<p>This command is a file transfer client with an FTP-like command interface.<\/p>\n<h4>7. sshd<\/h4>\n<p>This command is the open SSH server.<\/p>\n<h3>Syntax of the SSH command<\/h3>\n<p>The syntax of the ssh command is:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">ssh &lt;user name&gt; @host &lt;IP address \/ Domain name&gt;<\/pre>\n<p>The command consists of the keyword \u2018ssh\u2019 and the components username and host. Let us look into the components of the SSH command.<\/p>\n<h4>1. Ssh command<\/h4>\n<p>The keyword \u2018ssh\u2019 instructs the system to create a secure and encrypted connection with the host system.<\/p>\n<h4>2. User name<\/h4>\n<p>The username is the name of the Linux user. This is the user who is being accessed by the host machine.<\/p>\n<h4>3. Host<\/h4>\n<p>The hast is the machine that is being accessed by the user. The host can be a computer pr a router. The host can be specified by a domain name or IP address.<\/p>\n<h3>Techniques of SSH protocol<\/h3>\n<p>The SSh protocol is one of the most secure when compared to other protocols like telnet. Let us look at the 3 encryption techniques used by SSH<\/p>\n<h4>1. Symmetrical encryption<\/h4>\n<p>This technique of encryption generates a simple key for both encrypting and decrypting. This single key is distributed among the hosts and clients and creates a secure connection.<\/p>\n<p>One of the most commonly known symmetrical encryption is the caesar cipher. Symmetrical encryption is not much preferred as it is extremely vulnerable to brute-forcing.<\/p>\n<h4>2. Hashing<\/h4>\n<p>Hashing is an encryption technique that is used to ensure whether the received data is coming from a legit sender or not. This technique uses a hash function that generates a hash code from the data received.<\/p>\n<p>Hashing also comes with its own disadvantages, it is not possible to regenerate the data from the hash value. The data is authenticated is only if the hash value at both the sender and receivers side is matched.<\/p>\n<h4>3. Asymmetric encryption<\/h4>\n<p>This technique is the most used and the most secure. It works on the principle of factoring in really large numbers. Asymmetric encryption generated 2 keys called the private and public keys. The private key is used to encrypt messages, while the public key decrypts messages only encrypted using the respective private key.<\/p>\n<p>The private key is kept with the client machine while the public key is distributed to other machines. It must be noted that the private key must be always kept a secret, else it will compromise the entire secure connection.<\/p>\n<h3>Installing Open SSH client in Ubuntu<\/h3>\n<p>SSH does not come pre-installed on most of the Linux distributions, don\u2019t worry, because you can download it on all of the Linux distros as ssh supports all of them. To install SSH in ubuntu, use the following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo apt install openssh-client<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/installing-ssh-open-client.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110068\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/installing-ssh-open-client.webp\" alt=\"installing ssh open client\" width=\"780\" height=\"216\" \/><\/a><\/p>\n<p>If at all you want to install SSH in fedora based Linux distros like CentOS, use the command<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo dnf install openssh-clients<\/pre>\n<p>We are not done with the installation part yet. To check the installation status of the server, type the command shown below in the terminal<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">ssh localhost<\/pre>\n<p>If your system does not have the serval tool kit, the command will print the message that the connection has been refused.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/checking-if-ssh-local-host-is-installed-or-not.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110070\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/checking-if-ssh-local-host-is-installed-or-not.webp\" alt=\"checking if ssh local host is installed or not\" width=\"676\" height=\"73\" \/><\/a><\/p>\n<p>In the above output screen, My system does not have the server tool kit, which means only one thing, to install it.<\/p>\n<p>To install the server SSH, type the command shown below in the terminal:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo apt-get install openssh-server ii<\/pre>\n<p>On executing the command, the system will prompt you to press \u201cy\u201d to confirm the installation of additional packets.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/installing-ssh-local-host.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110069\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/installing-ssh-local-host.webp\" alt=\"installing ssh local host\" width=\"780\" height=\"287\" \/><\/a><\/p>\n<p>To verify if the installation had been a success or not, type the command<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo service ssh status<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/checking-ssh-status.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110071\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/checking-ssh-status.webp\" alt=\"checking ssh status\" width=\"780\" height=\"314\" \/><\/a><\/p>\n<p>Executing the above command will display the status of the installation.<\/p>\n<p>If you want another method to really crosscheck if the installation has been successful, you can retype the command \u201cssh localhost\u201d.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/using-ssh-local-host-to-check-status-of-ssh.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110072\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/using-ssh-local-host-to-check-status-of-ssh.webp\" alt=\"using ssh local host to check status of ssh\" width=\"768\" height=\"521\" \/><\/a><\/p>\n<p>This time the output screen will be different (showing confirmation of installation) as we have successfully downloaded the server-side tool kit as well as the host side.<\/p>\n<h4>Setting up SSH keys<\/h4>\n<p>Now that you have successfully installed open SSH, you need a specific key for an encrypted connection. To generate keys, you can type the command \u201cssh-keygen\u201d.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/setting-up-ssh-keys.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110073\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/setting-up-ssh-keys.webp\" alt=\"setting up ssh keys\" width=\"780\" height=\"546\" \/><\/a><\/p>\n<h3>Options used with the SSH command<\/h3>\n<p>We can use many options along with the SSH command to specify the different specifications of the SSH output. Let us look at some of the most used options along with the SSH command.<\/p>\n<h4>1. -c<\/h4>\n<p>This option specifies the query class for non-IN data.<\/p>\n<h4>2. -C<\/h4>\n<p>This option compares SOA records on authoritative nameservers.<\/p>\n<h4>3. -d<\/h4>\n<p>This option is exactly the same as the option \u201cv\u201d it provides verbose.<\/p>\n<h4>4. -i<\/h4>\n<p>This option is used for IP6.INT reverse lookups.<\/p>\n<h4>5. -I<\/h4>\n<p>This option lists all hosts in a domain using AXFR.<\/p>\n<h4>6. -m<\/h4>\n<p>This option sets the memory debugging flag.<\/p>\n<h4>7. -N<\/h4>\n<p>This option changes the number of dots allowed before root lookup is done.<\/p>\n<h4>8. -r<\/h4>\n<p>This option disables recursive processing.<\/p>\n<h4>9. -R<\/h4>\n<p>This option specifies the number of retries for UDP packets.<\/p>\n<h4>10. -s<\/h4>\n<p>This option provides a SERVFAIL response<\/p>\n<h4>11. -t<\/h4>\n<p>This option specifies the query type.<\/p>\n<h4>12. -T<\/h4>\n<p>This option enables the TCP\/IP model.<\/p>\n<h4>13. -v<\/h4>\n<p>This option provides verbose for a better understanding of the output<\/p>\n<h4>14. -V<\/h4>\n<p>This option prints information about the version of SSH you are using.<\/p>\n<h4>15. -w<\/h4>\n<p>This option specifies the wait forever for a reply.<\/p>\n<h4>16. -W<\/h4>\n<p>This option specifies how long to wait for a reply.<\/p>\n<h4>17. -4<\/h4>\n<p>This option is used to query only IPv4 transport<\/p>\n<h4>18. -6<\/h4>\n<p>This option is used to query only IPv6 transport<\/p>\n<h4>19. -1<\/h4>\n<p>This option forces ssh to use protocol SSH-1 only.<\/p>\n<h4>20. -2<\/h4>\n<p>This option forces ssh to use protocol SSH-2 only.<\/p>\n<h4>21. -A<\/h4>\n<p>This option enables authentication agent connection forwarding.<\/p>\n<h4>22. -a<\/h4>\n<p>This option disables authentication agent connection forwarding.<\/p>\n<h4>23. -f<\/h4>\n<p>This option requests ssh to go to the background just before executing the command<\/p>\n<h4>24. -g<\/h4>\n<p>This option allows remote hosts to connect to local forwarded ports.<\/p>\n<h4>25. -n<\/h4>\n<p>This option prevents reading from stdin.<\/p>\n<h4>26. -p &lt;port number&gt;<\/h4>\n<p>This option specifies the Port to connect to on the remote host.<\/p>\n<h4>27. -q<\/h4>\n<p>This option suppresses all errors and warnings<\/p>\n<h4>28. -X<\/h4>\n<p>This option Enables X11 forwarding or GUI Forwarding.<\/p>\n<h4>29. -c &lt;cipher spec&gt;<\/h4>\n<p>This option Selects the cipher specification for encrypting the session.<\/p>\n<h4>30. -h<\/h4>\n<p>This option displays the help screen, which contains the usage of SSH.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/help-menu-of-ssh.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110074\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/help-menu-of-ssh.webp\" alt=\"help menu of ssh\" width=\"780\" height=\"209\" \/><\/a><\/p>\n<h3>How to connect through SSH?<\/h3>\n<p>Now that you have installed SSH, we can now establish a connection with the machines. We have already installed both the server and clients, now all there is left to do is establish a connection between the 2.<\/p>\n<p>To establish a secure connection, open the terminal and type the command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">ssh &lt;your username&gt; @ &lt;IP address of the host&gt;<\/pre>\n<p>If the machine verifies the IP address of the host you wanted to connect, type the command shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">ssh &lt;IP address of the host&gt;<\/pre>\n<p>On executing the command, the system will prompt you to enter your password, type it and press enter.<\/p>\n<p>Please note that, if you are establishing a connection for the first time, the system will ask you to continue or not, press \u201cy\u201d and enter. The command will add connect you to a remote server by adding an ECDSA (Elliptical curve Digital Signature Algorithm) key.<\/p>\n<h3>Specifying a different user name<\/h3>\n<p>We can also use a different username at the remote machine by entering the following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">ssh alternative-username@sample.ssh.com<\/pre>\n<p>The above command can also be written by removing the \u201c@\u201d symbol and using the option \u201c-l\u201d as shown: ssh -l alternative-username sample.ssh.com<\/p>\n<h3>Executing command on the server remotely<\/h3>\n<p>You can also make use of SSH to execute commands on the server from your remote system without logging in to a shell prompt. To do this, use the following syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">ssh &lt;hostname&gt; &lt;command&gt;<\/pre>\n<p>For example, if you want to list the contents of the \u201c\/temp\/doc\u201d directory of the server from your system, use the command shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">ssh &lt;hostname&gt; ls \/temp\/doc<\/pre>\n<p>After successful execution of the command, the contents of the remote directory will be displayed to your local shell prompt.<\/p>\n<h3>Configuration file of the SSH client<\/h3>\n<p>The ssh command reads its configuration file which is present in the path ~\/ .ssh\/config. We all know by now that all of the configuration files in Linux are stored on the \/etc directory, and so is the configuration file of SSH, it is present in the path \/etc\/ssh\/ssh_config.<\/p>\n<h3>Port forwarding<\/h3>\n<p>The options we have discussed above can be used to set up port forwarding. Before start, let us familiarize ourselves with the terms \u201clocal forwarding\u201d and \u201cRemote forwarding\u201d.<\/p>\n<p>Local forwarding means that a local port at the client computer is tunneled to an IP address and port from the server computer. Remote forwarding means that a remote port at the server computer is forwarded to a given IP address and port from the client computer.<\/p>\n<h3>Summary<\/h3>\n<p>As you have seen, SSH is a really helpful tool that helps in establishing a secure connection between a client and a host. We have seen what SSH is, how SSH works, the main purpose of why SSH is used, other commands which are closely related to SSH, and 3 techniques of encryption.<\/p>\n<p>We have also seen how to install SSH, the syntax along with the various options used with the command, and how to connect using SSH.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article you will learn all there is to the SSH command and tool in Linux-based operating system. We will go straight from the fundamentals like what SSH is, terminology, uses of SSH,&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":110065,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[27012,27010,27013,27009,27011],"class_list":["post-110054","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux-ssh-examples","tag-need-of-ssh","tag-ssh-command-syntax","tag-ssh-linux-command","tag-ssh-working"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SSH Command in Linux - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn about linux ssh command, its syntax, uses, working, terminologies, components, various options, generating keys with SSH etc.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SSH Command in Linux - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn about linux ssh command, its syntax, uses, working, terminologies, components, various options, generating keys with SSH etc.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-18T05:30:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-18T06:04:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/ssh-command-in-linux.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SSH Command in Linux - DataFlair","description":"Learn about linux ssh command, its syntax, uses, working, terminologies, components, various options, generating keys with SSH etc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"SSH Command in Linux - DataFlair","og_description":"Learn about linux ssh command, its syntax, uses, working, terminologies, components, various options, generating keys with SSH etc.","og_url":"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2022-08-18T05:30:10+00:00","article_modified_time":"2022-08-18T06:04:05+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/ssh-command-in-linux.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"SSH Command in Linux","datePublished":"2022-08-18T05:30:10+00:00","dateModified":"2022-08-18T06:04:05+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/"},"wordCount":2126,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/ssh-command-in-linux.webp","keywords":["linux ssh examples","need of ssh","ssh command syntax","SSH linux command","ssh working"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/","url":"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/","name":"SSH Command in Linux - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/ssh-command-in-linux.webp","datePublished":"2022-08-18T05:30:10+00:00","dateModified":"2022-08-18T06:04:05+00:00","description":"Learn about linux ssh command, its syntax, uses, working, terminologies, components, various options, generating keys with SSH etc.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/ssh-command-in-linux.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/ssh-command-in-linux.webp","width":1200,"height":628,"caption":"ssh command in linux"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/ssh-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Linux Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"SSH Command in Linux"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/110054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=110054"}],"version-history":[{"count":6,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/110054\/revisions"}],"predecessor-version":[{"id":110090,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/110054\/revisions\/110090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/110065"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=110054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=110054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=110054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}