{"id":378,"date":"2019-04-29T12:58:37","date_gmt":"2019-04-29T07:28:37","guid":{"rendered":"http:\/\/www.itsupportwale.com\/blog\/?p=378"},"modified":"2026-02-17T15:57:48","modified_gmt":"2026-02-17T10:27:48","slug":"pssh-execute-ssh-commands-on-multiple-systems-using-single-command","status":"publish","type":"post","link":"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/","title":{"rendered":"Pssh \u2013 Execute SSH Commands on Multiple Systems Using Single Command"},"content":{"rendered":"\n<p><strong>pssh<\/strong> ( Parallel SSH Program ) is a program for executing SSH in parallel on a number of hosts.  It provides features such as sending input to all of the processes, passing a password to ssh, saving the output to files, and timing out.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"190\" src=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-example-1-1024x190.jpg\" alt=\"pssh-example-1\" class=\"wp-image-387\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-example-1-1024x190.jpg 1024w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-example-1-300x56.jpg 300w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-example-1-768x142.jpg 768w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-example-1.jpg 1051w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>We all nearly use the same &#8220;<strong>OpenSSH<\/strong>&#8221; for all our SSH needs. But we can not run the same command on multiple Linux systems with OpenSSH.<\/p>\n\n\n\n<p>In this article, we will learn how to run the same command on multiple Linux systems using SSH and a single terminal.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69d82580cbd2a\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69d82580cbd2a\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#Why_we_need_this\" >Why we need this<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#How_to_Install_PSSH_or_Parallel_SSH_Program\" >How to Install PSSH or Parallel SSH Program<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#On_CentOS_and_RedHat\" >On CentOS and RedHat<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#On_Ubuntu_and_Mint\" >On Ubuntu and Mint<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#How_to_Use_PSSH\" >How to Use PSSH?<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#Example_Host_file_content\" >Example Host file content:<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_we_need_this\"><\/span>Why we need this<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Suppose you are a System Administrator in a company and you have to manage several 100 Linux Systems. Now your boss wants to check how many systems are up and running. For a single system, we just fire up the terminal and run the command &#8211; &#8220;uptime&#8221; and it shows the current status of the system. Isn&#8217;t it very simple? But you have to go to every single system and run the command manually or you can do SSH every system one by one. Yeah!! Now, that sounds a little bulky work, not the smart work obviously.<\/p>\n\n\n\n<p>So for this kind of scenario, we can use &#8220;PSSH&#8221; ( Parallel SSH Program ). As its name says, we can run SSH commands parallel on multiple systems. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Install_PSSH_or_Parallel_SSH_Program\"><\/span>How to Install PSSH or Parallel SSH Program<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this section, we will learn how to install the latest version of PSSH on  <strong>CentOS<\/strong>\/<strong>RedHat<\/strong> and <strong>Ubuntu<\/strong>\/<strong>Mint<\/strong>&nbsp;using&nbsp;<strong>pip<\/strong>&nbsp;command.<\/p>\n\n\n\n<p>pip is the&nbsp;package installer&nbsp;for Python. You can use pip to install packages from the&nbsp;Python Package Index&nbsp;and other indexes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"On_CentOS_and_RedHat\"><\/span>On CentOS and RedHat<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>On CentOS\/RHEL distributions, you need to first install pip package under your system, in order to install the PSSH program.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install python-pip<\/code><\/pre>\n\n\n\n<p>After installing pip tool, you can now install the pssh package with the help of command as shown below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install pssh<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"On_Ubuntu_and_Mint\"><\/span>On Ubuntu and Mint<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Again, You have to first install the pip package in Ubuntu or Mint Distribution.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install python-pip<\/code><\/pre>\n\n\n\n<p>After that install the Pssh program with this command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pip install pssh<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Use_PSSH\"><\/span>How to Use PSSH?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Using pssh is a piece of cake for you. Believe me!! At first, you have to create a  file which is having the username, IP address and port number of all the systems you want to connect.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example_Host_file_content\"><\/span>Example Host file content:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>172.16.9.1\nadmin@172.16.9.2\nadmin@172.16.9.3:22<\/code><\/pre>\n\n\n\n<p>After that, we just have to run the command. But before that let&#8217;s have a look at available options that we are going to use in our command.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>-h host_file<\/strong> OR <strong>&#8211;hosts host_file:<\/strong> This option is used for importing the host file which we had created in the previous step.<\/li><li><strong>-l user<\/strong> OR <strong>&#8211;user user:<\/strong> This option is used for giving a common username for all the host if we do not specify the username in the host file.<\/li><li><strong>-A<\/strong> OR <strong>&#8211;askpass<\/strong>: This option is prompt for a password and pass it to ssh.<\/li><li><strong>-i<\/strong> OR <strong>&#8211;inline<\/strong>: This option will display standard output and standard error as each host completes.<\/li><li><strong>-O options<\/strong> OR <strong>&#8211;options options<\/strong>: This option is used for giving SSH  options in the format used in the SSH configuration file.<\/li><\/ul>\n\n\n\n<p>So, now we have covered at least those options which are necessary for the initial use of pssh tool. <\/p>\n\n\n\n<p>Lets see some example of pssh command for better understanding: <\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>For example, you want to see the mac address of all the hosts which exist in our host file. So you can do this via this command:<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>pssh -O StrictHostKeyChecking=no -h hostfile -l admin -A -i \"ifconfig\"<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">[1] 11:57:55 [<strong>SUCCESS<\/strong>] 172.16.9.0<br> eth0      Link encap:Ethernet  HWaddr 00:21:85:ad:ff:b3  <br>           inet addr:172.16.9.0  Bcast:172.16.255.255  Mask:255.255.0.0<br>           inet6 addr: fe80::221:85ff:fead:ffb3\/64 Scope:Link<br>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br>           RX packets:131561 errors:0 dropped:0 overruns:0 frame:0<br>           TX packets:52324 errors:0 dropped:0 overruns:0 carrier:0<br>           collisions:0 txqueuelen:1000 <br>           RX bytes:28848457 (28.8 MB)  TX bytes:6277146 (6.2 MB)<br>           Interrupt:17 <br> lo        Link encap:Local Loopback  <br>           inet addr:127.0.0.1  Mask:255.0.0.0<br>           inet6 addr: ::1\/128 Scope:Host<br>           UP LOOPBACK RUNNING  MTU:16436  Metric:1<br>           RX packets:838 errors:0 dropped:0 overruns:0 frame:0<br>           TX packets:838 errors:0 dropped:0 overruns:0 carrier:0<br>           collisions:0 txqueuelen:0 <br>           RX bytes:70853 (70.8 KB)  TX bytes:70853 (70.8 KB)<br> [2] 11:57:55 [<strong>SUCCESS<\/strong>] 172.16.9.1<br> eth3      Link encap:Ethernet  HWaddr 78:45:c4:07:05:89  <br>           inet addr:172.16.9.1  Bcast:172.16.255.255  Mask:255.255.0.0<br>           inet6 addr: fe80::7a45:c4ff:fe07:589\/64 Scope:Link<br>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br>           RX packets:182880 errors:0 dropped:0 overruns:0 frame:0<br>           TX packets:69974 errors:0 dropped:0 overruns:0 carrier:0<br>           collisions:0 txqueuelen:1000 <br>           RX bytes:52493825 (52.4 MB)  TX bytes:10240243 (10.2 MB)<br>           Interrupt:40 Base address:0xa000 <br> lo        Link encap:Local Loopback  <br>           inet addr:127.0.0.1  Mask:255.0.0.0<br>           inet6 addr: ::1\/128 Scope:Host<br>           UP LOOPBACK RUNNING  MTU:16436  Metric:1<br>           RX packets:1440 errors:0 dropped:0 overruns:0 frame:0<br>           TX packets:1440 errors:0 dropped:0 overruns:0 carrier:0<br>           collisions:0 txqueuelen:0 <br>           RX bytes:127377 (127.3 KB)  TX bytes:127377 (127.3 KB)<\/pre>\n\n\n\n<p>2. If you want to find the uptime of all the hosts which are exists in our host file. So you can do this via this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pssh -O StrictHostKeyChecking=no -h hostfile -l admin -A -i \"uptime\" <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">[1] 12:02:01 [<strong>SUCCESS<\/strong>] 172.16.9.0<br>  12:02:01 up  2:48,  0 users,  load average: 0.63, 0.50, 0.45<br> [2] 12:02:01 [<strong>SUCCESS<\/strong>] 172.16.9.1<br>  12:02:01 up  2:07,  0 users,  load average: 1.30, 0.97, 0.83<\/pre>\n\n\n\n<p>You can also see the man page of <strong>pssh<\/strong> for find out all options it have.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pssh --help<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"982\" height=\"625\" src=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-help-page.jpg\" alt=\"pssh-help-page\" class=\"wp-image-386\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-help-page.jpg 982w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-help-page-300x191.jpg 300w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-help-page-768x489.jpg 768w\" sizes=\"auto, (max-width: 982px) 100vw, 982px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this article we covered all the intial steps to use the<strong> pssh<\/strong> command. This is a very useful tool for all system administrators. Well thats it for now you can share your thoughts in the comment section. Happy Learning ..!!<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Also Learn : <strong><a href=\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-7-on-ubuntu-18-10\/\">&#8220;How to upgrade to python 3.7 on Ubuntu 18.10&#8221;<\/a><\/strong><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>pssh ( Parallel SSH Program ) is a program for executing SSH in parallel on a number of hosts. It provides features such as sending input to all of the processes, passing a password to ssh, saving the output to files, and timing out. We all nearly use the same &#8220;OpenSSH&#8221; for all our SSH &#8230; <a title=\"Pssh \u2013 Execute SSH Commands on Multiple Systems Using Single Command\" class=\"read-more\" href=\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/\" aria-label=\"Read more  on Pssh \u2013 Execute SSH Commands on Multiple Systems Using Single Command\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":386,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[130,2],"tags":[133,131,136,139,137,135,138,132,134],"class_list":["post-378","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash-scripts","category-tutorials","tag-how-to-execute-multiple-commands","tag-how-to-execute-single-command-on-multiple-servers-in-linux","tag-multiple-commands","tag-possible-to-send-commands-over-ssh","tag-run-command-in-multiple-ec2-linux-instances","tag-run-multiple-commands-in-single-instance","tag-send-commands-over-ssh","tag-single-command-on-multiple-linux-machines","tag-ssh-send-commands-to-other-machines"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pssh \u2013 Execute SSH Commands on Multiple Systems Using Single Command - ITSupportWale<\/title>\n<meta name=\"description\" content=\"Using pssh is a piece of cake for you. Believe me!! At first, you have to create a file which is having the username, IP address and port number of all the systems you want to connect.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pssh \u2013 Execute SSH Commands on Multiple Systems Using Single Command - ITSupportWale\" \/>\n<meta property=\"og:description\" content=\"Using pssh is a piece of cake for you. Believe me!! At first, you have to create a file which is having the username, IP address and port number of all the systems you want to connect.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/\" \/>\n<meta property=\"og:site_name\" content=\"ITSupportWale\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Itsupportwale-298547177495978\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-29T07:28:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-17T10:27:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-help-page.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"982\" \/>\n\t<meta property=\"og:image:height\" content=\"625\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Techie\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Techie\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/\"},\"author\":{\"name\":\"Techie\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d\"},\"headline\":\"Pssh \u2013 Execute SSH Commands on Multiple Systems Using Single Command\",\"datePublished\":\"2019-04-29T07:28:37+00:00\",\"dateModified\":\"2026-02-17T10:27:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/\"},\"wordCount\":686,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-help-page.jpg\",\"keywords\":[\"how to execute multiple commands\",\"how to execute single command on multiple servers in linux\",\"multiple commands\",\"possible to send commands over ssh\",\"run command in multiple ec2 linux instances\",\"run multiple commands in single instance\",\"send commands over ssh\",\"single command on multiple linux machines\",\"ssh send commands to other machines\"],\"articleSection\":[\"Bash Scripts\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/\",\"url\":\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/\",\"name\":\"Pssh \u2013 Execute SSH Commands on Multiple Systems Using Single Command - ITSupportWale\",\"isPartOf\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-help-page.jpg\",\"datePublished\":\"2019-04-29T07:28:37+00:00\",\"dateModified\":\"2026-02-17T10:27:48+00:00\",\"description\":\"Using pssh is a piece of cake for you. Believe me!! At first, you have to create a file which is having the username, IP address and port number of all the systems you want to connect.\",\"breadcrumb\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#primaryimage\",\"url\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-help-page.jpg\",\"contentUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-help-page.jpg\",\"width\":982,\"height\":625,\"caption\":\"pssh-help-page\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/itsupportwale.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pssh \u2013 Execute SSH Commands on Multiple Systems Using Single Command\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#website\",\"url\":\"https:\/\/itsupportwale.com\/blog\/\",\"name\":\"ITSupportWale\",\"description\":\"Tips, Tricks, Fixed-Errors, Tutorials &amp; Guides\",\"publisher\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/itsupportwale.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#organization\",\"name\":\"itsupportwale\",\"url\":\"https:\/\/itsupportwale.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png\",\"contentUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png\",\"width\":1119,\"height\":144,\"caption\":\"itsupportwale\"},\"image\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Itsupportwale-298547177495978\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d\",\"name\":\"Techie\",\"sameAs\":[\"https:\/\/itsupportwale.com\",\"iswblogadmin\"],\"url\":\"https:\/\/itsupportwale.com\/blog\/author\/iswblogadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pssh \u2013 Execute SSH Commands on Multiple Systems Using Single Command - ITSupportWale","description":"Using pssh is a piece of cake for you. Believe me!! At first, you have to create a file which is having the username, IP address and port number of all the systems you want to connect.","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:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/","og_locale":"en_US","og_type":"article","og_title":"Pssh \u2013 Execute SSH Commands on Multiple Systems Using Single Command - ITSupportWale","og_description":"Using pssh is a piece of cake for you. Believe me!! At first, you have to create a file which is having the username, IP address and port number of all the systems you want to connect.","og_url":"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/","og_site_name":"ITSupportWale","article_publisher":"https:\/\/www.facebook.com\/Itsupportwale-298547177495978","article_published_time":"2019-04-29T07:28:37+00:00","article_modified_time":"2026-02-17T10:27:48+00:00","og_image":[{"width":982,"height":625,"url":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-help-page.jpg","type":"image\/jpeg"}],"author":"Techie","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Techie","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#article","isPartOf":{"@id":"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/"},"author":{"name":"Techie","@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d"},"headline":"Pssh \u2013 Execute SSH Commands on Multiple Systems Using Single Command","datePublished":"2019-04-29T07:28:37+00:00","dateModified":"2026-02-17T10:27:48+00:00","mainEntityOfPage":{"@id":"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/"},"wordCount":686,"commentCount":0,"publisher":{"@id":"https:\/\/itsupportwale.com\/blog\/#organization"},"image":{"@id":"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#primaryimage"},"thumbnailUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-help-page.jpg","keywords":["how to execute multiple commands","how to execute single command on multiple servers in linux","multiple commands","possible to send commands over ssh","run command in multiple ec2 linux instances","run multiple commands in single instance","send commands over ssh","single command on multiple linux machines","ssh send commands to other machines"],"articleSection":["Bash Scripts","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/","url":"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/","name":"Pssh \u2013 Execute SSH Commands on Multiple Systems Using Single Command - ITSupportWale","isPartOf":{"@id":"https:\/\/itsupportwale.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#primaryimage"},"image":{"@id":"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#primaryimage"},"thumbnailUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-help-page.jpg","datePublished":"2019-04-29T07:28:37+00:00","dateModified":"2026-02-17T10:27:48+00:00","description":"Using pssh is a piece of cake for you. Believe me!! At first, you have to create a file which is having the username, IP address and port number of all the systems you want to connect.","breadcrumb":{"@id":"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#primaryimage","url":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-help-page.jpg","contentUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/04\/pssh-help-page.jpg","width":982,"height":625,"caption":"pssh-help-page"},{"@type":"BreadcrumbList","@id":"https:\/\/itsupportwale.com\/blog\/pssh-execute-ssh-commands-on-multiple-systems-using-single-command\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/itsupportwale.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Pssh \u2013 Execute SSH Commands on Multiple Systems Using Single Command"}]},{"@type":"WebSite","@id":"https:\/\/itsupportwale.com\/blog\/#website","url":"https:\/\/itsupportwale.com\/blog\/","name":"ITSupportWale","description":"Tips, Tricks, Fixed-Errors, Tutorials &amp; Guides","publisher":{"@id":"https:\/\/itsupportwale.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/itsupportwale.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/itsupportwale.com\/blog\/#organization","name":"itsupportwale","url":"https:\/\/itsupportwale.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png","contentUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png","width":1119,"height":144,"caption":"itsupportwale"},"image":{"@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Itsupportwale-298547177495978"]},{"@type":"Person","@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d","name":"Techie","sameAs":["https:\/\/itsupportwale.com","iswblogadmin"],"url":"https:\/\/itsupportwale.com\/blog\/author\/iswblogadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts\/378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/comments?post=378"}],"version-history":[{"count":4,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts\/378\/revisions"}],"predecessor-version":[{"id":4681,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts\/378\/revisions\/4681"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/media\/386"}],"wp:attachment":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/media?parent=378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/categories?post=378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/tags?post=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}